aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-08-13 13:05:44 -0400
committerDeterminant <[email protected]>2019-08-13 13:05:44 -0400
commit42099d3ff72c5a10a70c94caffd64d1d774b2902 (patch)
tree02a299f9973fb6f3b2521451c96154ff84b1737d
parent58e92e428ae82b8a028d06f563da420ed954100c (diff)
use correct nonce
-rw-r--r--eth/backend.go2
-rw-r--r--examples/payments/main.go2
-rw-r--r--miner/worker.go1
3 files changed, 3 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 6efc5e3..dd91405 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -509,7 +509,7 @@ func (s *Ethereum) Stop() error {
s.bloomIndexer.Close()
s.blockchain.Stop()
s.engine.Close()
- //s.protocolManager.Stop()
+ s.protocolManager.Stop()
if s.lesServer != nil {
s.lesServer.Stop()
}
diff --git a/examples/payments/main.go b/examples/payments/main.go
index 76306b0..3e675ac 100644
--- a/examples/payments/main.go
+++ b/examples/payments/main.go
@@ -56,7 +56,7 @@ func main() {
}
chainID := chainConfig.ChainID
- nonce := uint64(0)
+ nonce := uint64(1)
value := big.NewInt(1000000000000)
gasLimit := 21000
gasPrice := big.NewInt(1000)
diff --git a/miner/worker.go b/miner/worker.go
index f5357f3..b5448d3 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -605,6 +605,7 @@ func (w *worker) resultLoop() {
// Broadcast the block and announce chain insertion event
w.mux.Post(core.NewMinedBlockEvent{Block: block})
+ //w.chain.FastSyncCommitHead(block.Hash())
var events []interface{}
switch stat {