mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
core/state: fixed some comments (#21450)
# Conflicts: # core/state/state_object.go # core/state/statedb.go # core/state/statedb_test.go
This commit is contained in:
parent
ece9515974
commit
5388193c2c
@ -251,7 +251,7 @@ func (so *stateObject) updateTrie(ctx context.Context, stateWriter StateWriter)
|
||||
// AddBalance adds amount to so's balance.
|
||||
// It is used to add funds to the destination account of a transfer.
|
||||
func (so *stateObject) AddBalance(amount *uint256.Int) {
|
||||
// EIP158: We must check emptiness for the objects such that the account
|
||||
// EIP161: We must check emptiness for the objects such that the account
|
||||
// clearing (0,0,0 objects) can take effect.
|
||||
if amount.IsZero() {
|
||||
if so.empty() {
|
||||
|
Loading…
Reference in New Issue
Block a user