diff options
author | Martin Holst Swende <martin@swende.se> | 2017-06-01 22:16:12 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-06-01 22:16:12 +0800 |
commit | 1a0eb903f1e84772b14f399e519b4a3408137fdc (patch) | |
tree | 44ce7c8249a6955c730a93cb66cd1d7ed86b7497 /internal | |
parent | 0036e2a74761413200ce3a8ed316ecb721895f60 (diff) | |
download | go-tangerine-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar go-tangerine-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.gz go-tangerine-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.bz2 go-tangerine-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.lz go-tangerine-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.xz go-tangerine-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.zst go-tangerine-1a0eb903f1e84772b14f399e519b4a3408137fdc.zip |
internal/ethapi: initialize account mutex in lock properly
Diffstat (limited to 'internal')
-rw-r--r-- | internal/ethapi/api.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index c4a871e48..da5dc5d58 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -211,8 +211,9 @@ type PrivateAccountAPI struct { // NewPrivateAccountAPI create a new PrivateAccountAPI. func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI { return &PrivateAccountAPI{ - am: b.AccountManager(), - b: b, + am: b.AccountManager(), + nonceLock: nonceLock, + b: b, } } |