diff options
author | Martin Holst Swende <martin@swende.se> | 2017-05-25 23:08:13 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-05-30 22:43:38 +0800 |
commit | ea11f7dd7aa77856a04d83d0db8f303d02e0ce14 (patch) | |
tree | 5ef4de2afde2e5c0ddfde52775e1001ff7f32c08 /eth | |
parent | 07aae19e5da66ed404453e6be70ab84db516207b (diff) | |
download | dexon-ea11f7dd7aa77856a04d83d0db8f303d02e0ce14.tar dexon-ea11f7dd7aa77856a04d83d0db8f303d02e0ce14.tar.gz dexon-ea11f7dd7aa77856a04d83d0db8f303d02e0ce14.tar.bz2 dexon-ea11f7dd7aa77856a04d83d0db8f303d02e0ce14.tar.lz dexon-ea11f7dd7aa77856a04d83d0db8f303d02e0ce14.tar.xz dexon-ea11f7dd7aa77856a04d83d0db8f303d02e0ce14.tar.zst dexon-ea11f7dd7aa77856a04d83d0db8f303d02e0ce14.zip |
internal/ethapi: add mutex around signing + nonce assignment
This prevents concurrent assignment of identical nonces when automatic
assignment is used.
Diffstat (limited to 'eth')
-rw-r--r-- | eth/bind.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/bind.go b/eth/bind.go index 245934183..e5abd8617 100644 --- a/eth/bind.go +++ b/eth/bind.go @@ -48,7 +48,7 @@ func NewContractBackend(apiBackend ethapi.Backend) *ContractBackend { return &ContractBackend{ eapi: ethapi.NewPublicEthereumAPI(apiBackend), bcapi: ethapi.NewPublicBlockChainAPI(apiBackend), - txapi: ethapi.NewPublicTransactionPoolAPI(apiBackend), + txapi: ethapi.NewPublicTransactionPoolAPI(apiBackend, new(ethapi.AddrLocker)), } } |