From 2e0b38c332a3ab4e11b97a38ff6d8427a3d96215 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 26 Sep 2019 00:36:14 -0400 Subject: add a chain rand generation example/test --- examples/payments/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/payments/main.go') diff --git a/examples/payments/main.go b/examples/payments/main.go index 0a69061..4a49813 100644 --- a/examples/payments/main.go +++ b/examples/payments/main.go @@ -60,7 +60,7 @@ func main() { // grab the control of block generation and disable auto uncle config.Miner.ManualMining = true - config.Miner.ManualUncle = true + config.Miner.DisableUncle = true // info required to generate a transaction chainID := chainConfig.ChainID @@ -72,7 +72,7 @@ func main() { checkError(err) blockCount := 0 - chain := coreth.NewETHChain(&config, nil) + chain := coreth.NewETHChain(&config, nil, nil) showBalance := func() { state, err := chain.CurrentState() checkError(err) -- cgit v1.2.3