aboutsummaryrefslogtreecommitdiff
path: root/core/state/snapshot/generate.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-16 22:54:37 -0400
committerDeterminant <[email protected]>2020-09-16 22:54:37 -0400
commited839907e592ad25e6119e145e7e05ca78b00fcd (patch)
tree1235df2fcf794c391afb33cc2dd80926469e2c7e /core/state/snapshot/generate.go
parent5370b602abea0415f7609f19e3f44d5c9366e5bd (diff)
...
Diffstat (limited to 'core/state/snapshot/generate.go')
-rw-r--r--core/state/snapshot/generate.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/state/snapshot/generate.go b/core/state/snapshot/generate.go
index dac782f..27f8dfc 100644
--- a/core/state/snapshot/generate.go
+++ b/core/state/snapshot/generate.go
@@ -161,15 +161,16 @@ func (dl *diskLayer) generate(stats *generatorStats) {
accountHash := common.BytesToHash(accIt.Key)
var acc struct {
- Nonce uint64
- Balance *big.Int
- Root common.Hash
- CodeHash []byte
+ Nonce uint64
+ Balance *big.Int
+ Root common.Hash
+ CodeHash []byte
+ IsMultiCoin bool
}
if err := rlp.DecodeBytes(accIt.Value, &acc); err != nil {
log.Crit("Invalid account encountered during snapshot creation", "err", err)
}
- data := SlimAccountRLP(acc.Nonce, acc.Balance, acc.Root, acc.CodeHash)
+ data := SlimAccountRLP(acc.Nonce, acc.Balance, acc.Root, acc.CodeHash, acc.IsMultiCoin)
// If the account is not yet in-progress, write it out
if accMarker == nil || !bytes.Equal(accountHash[:], accMarker) {