aboutsummaryrefslogtreecommitdiff
path: root/examples/multicoin/main.go
diff options
context:
space:
mode:
authoraaronbuchwald <[email protected]>2020-09-17 09:36:44 -0400
committerGitHub <[email protected]>2020-09-17 09:36:44 -0400
commit42ee77a946d062a4c8e1fabc394ac016ae30e68e (patch)
tree85da01f5b75788e257d3c355917a4b3a8ad8603b /examples/multicoin/main.go
parent92fdc0a4b6208387424029182a131b25a2f92dac (diff)
parent6b4efa7ff5537a7cdb1d73b18dd75f56bdadc032 (diff)
Merge pull request #33 from ava-labs/fix-nil-pointer
Fix potential nil pointer dereference
Diffstat (limited to 'examples/multicoin/main.go')
-rw-r--r--examples/multicoin/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/multicoin/main.go b/examples/multicoin/main.go
index fc379d4..bfad5ca 100644
--- a/examples/multicoin/main.go
+++ b/examples/multicoin/main.go
@@ -64,6 +64,9 @@ func main() {
genKey := coreth.NewKeyFromECDSA(hk)
config.Genesis = genesisBlock
+ config.TrieCleanCache += config.SnapshotCache
+ config.SnapshotCache = 0
+
// grab the control of block generation and disable auto uncle
config.Miner.ManualMining = true
config.Miner.ManualUncle = true