mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Update execute.go
This commit is contained in:
parent
cb97c48cb6
commit
4af4def446
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ func apply(db database.NodeDatabase, prevRoot common.Hash, postRoot common.Hash,
|
||||||
rawStorageKey: rawStorageKey,
|
rawStorageKey: rawStorageKey,
|
||||||
nodes: trienode.NewMergedNodeSet(),
|
nodes: trienode.NewMergedNodeSet(),
|
||||||
}
|
}
|
||||||
var deletes []common.Address
|
deletes := make([]common.Address, 0, len(accounts))
|
||||||
for addr, account := range accounts {
|
for addr, account := range accounts {
|
||||||
if len(account) == 0 {
|
if len(account) == 0 {
|
||||||
deletes = append(deletes, addr)
|
deletes = append(deletes, addr)
|
||||||
|
|
@ -114,7 +114,7 @@ func updateAccount(ctx *context, db database.NodeDatabase, addr common.Address)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
var deletes []common.Hash
|
deletes := make([]common.Hash, 0, len(ctx.storages[addr]))
|
||||||
for key, val := range ctx.storages[addr] {
|
for key, val := range ctx.storages[addr] {
|
||||||
tkey := key
|
tkey := key
|
||||||
if ctx.rawStorageKey {
|
if ctx.rawStorageKey {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue