aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-17 00:25:32 -0400
committerDeterminant <[email protected]>2020-09-17 00:25:32 -0400
commit7063564c571bcdc94b981db7ed3707902f0466d0 (patch)
treede83b7a24cce909c778f549775319059d1b7c2d6 /plugin/evm/vm.go
parent3ddf58c70d33f85c9d3521f34e4c3fba0deca1e3 (diff)
disable snapshot
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 993727e..55411cf 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -243,6 +243,10 @@ func (vm *VM) Initialize(
config := eth.DefaultConfig
config.ManualCanonical = true
config.Genesis = g
+ // disable the experimental snapshot feature from geth
+ config.TrieCleanCache += config.SnapshotCache
+ config.SnapshotCache = 0
+
config.Miner.ManualMining = true
config.Miner.DisableUncle = true