mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-15 19:31:37 +00:00
Apply suggestion from @jwasinger
This commit is contained in:
parent
ddb521e0d2
commit
bf53d63b3e
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ func (e *AccountAccess) validate(blockTxCount int) error {
|
||||||
return errors.New("balance changes not in ascending order by tx index")
|
return errors.New("balance changes not in ascending order by tx index")
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(e.BalanceChanges) > 0 && int(e.BalanceChanges[len(e.BalanceChanges)-1].TxIdx) >= blockTxCount+2 {
|
if len(e.BalanceChanges) > 0 && int(e.BalanceChanges[len(e.BalanceChanges)-1].TxIdx) > blockTxCount+1 {
|
||||||
return errors.New("highest balance change index beyond what is allowed")
|
return errors.New("highest balance change index beyond what is allowed")
|
||||||
}
|
}
|
||||||
// check that the balance values are set and there are no duplicate index entries
|
// check that the balance values are set and there are no duplicate index entries
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue