diff options
author | Determinant <[email protected]> | 2019-10-21 16:07:47 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-10-21 16:07:47 -0400 |
commit | 7212dbd90f4cb8fe907617f804c8940db1ce657e (patch) | |
tree | a80485085a7c30e2bb06cc64081a1effcffd2204 /examples/payments | |
parent | 79b1169a9ff0b54ddf3b520a70a79c78ba5c988d (diff) |
fix the pool reset bug
Diffstat (limited to 'examples/payments')
-rw-r--r-- | examples/payments/main.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/payments/main.go b/examples/payments/main.go index 5a56028..1eab70b 100644 --- a/examples/payments/main.go +++ b/examples/payments/main.go @@ -84,9 +84,7 @@ func main() { }) newBlockChan := make(chan *types.Block) chain.SetOnSealFinish(func(block *types.Block) error { - go func() { - newBlockChan <- block - }() + newBlockChan <- block return nil }) @@ -96,7 +94,6 @@ func main() { tx := types.NewTransaction(nonce, bob.Address, value, uint64(gasLimit), gasPrice, nil) signedTx, err := types.SignTx(tx, types.NewEIP155Signer(chainID), genKey.PrivateKey) checkError(err) - _ = signedTx chain.AddRemoteTxs([]*types.Transaction{signedTx}) nonce++ chain.GenBlock() |