aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2017-06-01 22:16:12 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-06-01 22:16:12 +0800
commit1a0eb903f1e84772b14f399e519b4a3408137fdc (patch)
tree44ce7c8249a6955c730a93cb66cd1d7ed86b7497 /internal
parent0036e2a74761413200ce3a8ed316ecb721895f60 (diff)
downloaddexon-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar
dexon-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.gz
dexon-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.bz2
dexon-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.lz
dexon-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.xz
dexon-1a0eb903f1e84772b14f399e519b4a3408137fdc.tar.zst
dexon-1a0eb903f1e84772b14f399e519b4a3408137fdc.zip
internal/ethapi: initialize account mutex in lock properly
Diffstat (limited to 'internal')
-rw-r--r--internal/ethapi/api.go5
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,
}
}