@@ -248,7 +248,7 @@ func (s *StateDB) Error() error {
248248}
249249
250250func (s * StateDB ) AddLog (log * types.Log ) {
251- s .journal .JournalLog (s .thash )
251+ s .journal .Log (s .thash )
252252
253253 log .TxHash = s .thash
254254 log .TxIndex = uint (s .txIndex )
@@ -293,14 +293,14 @@ func (s *StateDB) Preimages() map[common.Hash][]byte {
293293
294294// AddRefund adds gas to the refund counter
295295func (s * StateDB ) AddRefund (gas uint64 ) {
296- s .journal .JournalRefundChange (s .refund )
296+ s .journal .RefundChange (s .refund )
297297 s .refund += gas
298298}
299299
300300// SubRefund removes gas from the refund counter.
301301// This method will panic if the refund counter goes below zero
302302func (s * StateDB ) SubRefund (gas uint64 ) {
303- s .journal .JournalRefundChange (s .refund )
303+ s .journal .RefundChange (s .refund )
304304 if gas > s .refund {
305305 panic (fmt .Sprintf ("Refund counter below zero (gas: %d > refund: %d)" , gas , s .refund ))
306306 }
@@ -508,7 +508,7 @@ func (s *StateDB) SelfDestruct(addr common.Address) {
508508 // If it is already marked as self-destructed, we do not need to add it
509509 // for journalling a second time.
510510 if ! stateObject .selfDestructed {
511- s .journal .JournalDestruct (addr )
511+ s .journal .Destruct (addr )
512512 stateObject .markSelfdestructed ()
513513 }
514514}
@@ -531,7 +531,7 @@ func (s *StateDB) SetTransientState(addr common.Address, key, value common.Hash)
531531 if prev == value {
532532 return
533533 }
534- s .journal .JournalSetTransientState (addr , key , prev )
534+ s .journal .SetTransientState (addr , key , prev )
535535 s .setTransientState (addr , key , value )
536536}
537537
@@ -650,7 +650,7 @@ func (s *StateDB) getOrNewStateObject(addr common.Address) *stateObject {
650650// existing account with the given address, otherwise it will be silently overwritten.
651651func (s * StateDB ) createObject (addr common.Address ) * stateObject {
652652 obj := newObject (s , addr , nil )
653- s .journal .JournalCreate (addr )
653+ s .journal .Create (addr )
654654 s .setStateObject (obj )
655655 return obj
656656}
@@ -1387,7 +1387,7 @@ func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, d
13871387// AddAddressToAccessList adds the given address to the access list
13881388func (s * StateDB ) AddAddressToAccessList (addr common.Address ) {
13891389 if s .accessList .AddAddress (addr ) {
1390- s .journal .JournalAccessListAddAccount (addr )
1390+ s .journal .AccessListAddAccount (addr )
13911391 }
13921392}
13931393
@@ -1399,10 +1399,10 @@ func (s *StateDB) AddSlotToAccessList(addr common.Address, slot common.Hash) {
13991399 // scope of 'address' without having the 'address' become already added
14001400 // to the access list (via call-variant, create, etc).
14011401 // Better safe than sorry, though
1402- s .journal .JournalAccessListAddAccount (addr )
1402+ s .journal .AccessListAddAccount (addr )
14031403 }
14041404 if slotMod {
1405- s .journal .JournalAccessListAddSlot (addr , slot )
1405+ s .journal .AccessListAddSlot (addr , slot )
14061406 }
14071407}
14081408
0 commit comments