@@ -248,7 +248,7 @@ func (s *StateDB) Error() error {
248
248
}
249
249
250
250
func (s * StateDB ) AddLog (log * types.Log ) {
251
- s .journal .JournalLog (s .thash )
251
+ s .journal .Log (s .thash )
252
252
253
253
log .TxHash = s .thash
254
254
log .TxIndex = uint (s .txIndex )
@@ -293,14 +293,14 @@ func (s *StateDB) Preimages() map[common.Hash][]byte {
293
293
294
294
// AddRefund adds gas to the refund counter
295
295
func (s * StateDB ) AddRefund (gas uint64 ) {
296
- s .journal .JournalRefundChange (s .refund )
296
+ s .journal .RefundChange (s .refund )
297
297
s .refund += gas
298
298
}
299
299
300
300
// SubRefund removes gas from the refund counter.
301
301
// This method will panic if the refund counter goes below zero
302
302
func (s * StateDB ) SubRefund (gas uint64 ) {
303
- s .journal .JournalRefundChange (s .refund )
303
+ s .journal .RefundChange (s .refund )
304
304
if gas > s .refund {
305
305
panic (fmt .Sprintf ("Refund counter below zero (gas: %d > refund: %d)" , gas , s .refund ))
306
306
}
@@ -508,7 +508,7 @@ func (s *StateDB) SelfDestruct(addr common.Address) {
508
508
// If it is already marked as self-destructed, we do not need to add it
509
509
// for journalling a second time.
510
510
if ! stateObject .selfDestructed {
511
- s .journal .JournalDestruct (addr )
511
+ s .journal .Destruct (addr )
512
512
stateObject .markSelfdestructed ()
513
513
}
514
514
}
@@ -531,7 +531,7 @@ func (s *StateDB) SetTransientState(addr common.Address, key, value common.Hash)
531
531
if prev == value {
532
532
return
533
533
}
534
- s .journal .JournalSetTransientState (addr , key , prev )
534
+ s .journal .SetTransientState (addr , key , prev )
535
535
s .setTransientState (addr , key , value )
536
536
}
537
537
@@ -650,7 +650,7 @@ func (s *StateDB) getOrNewStateObject(addr common.Address) *stateObject {
650
650
// existing account with the given address, otherwise it will be silently overwritten.
651
651
func (s * StateDB ) createObject (addr common.Address ) * stateObject {
652
652
obj := newObject (s , addr , nil )
653
- s .journal .JournalCreate (addr )
653
+ s .journal .Create (addr )
654
654
s .setStateObject (obj )
655
655
return obj
656
656
}
@@ -1387,7 +1387,7 @@ func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, d
1387
1387
// AddAddressToAccessList adds the given address to the access list
1388
1388
func (s * StateDB ) AddAddressToAccessList (addr common.Address ) {
1389
1389
if s .accessList .AddAddress (addr ) {
1390
- s .journal .JournalAccessListAddAccount (addr )
1390
+ s .journal .AccessListAddAccount (addr )
1391
1391
}
1392
1392
}
1393
1393
@@ -1399,10 +1399,10 @@ func (s *StateDB) AddSlotToAccessList(addr common.Address, slot common.Hash) {
1399
1399
// scope of 'address' without having the 'address' become already added
1400
1400
// to the access list (via call-variant, create, etc).
1401
1401
// Better safe than sorry, though
1402
- s .journal .JournalAccessListAddAccount (addr )
1402
+ s .journal .AccessListAddAccount (addr )
1403
1403
}
1404
1404
if slotMod {
1405
- s .journal .JournalAccessListAddSlot (addr , slot )
1405
+ s .journal .AccessListAddSlot (addr , slot )
1406
1406
}
1407
1407
}
1408
1408
0 commit comments