From 1a0eb903f1e84772b14f399e519b4a3408137fdc Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 1 Jun 2017 16:16:12 +0200 Subject: [PATCH] internal/ethapi: initialize account mutex in lock properly --- internal/ethapi/api.go | 5 +++-- 1 file 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, } }