internal/ethapi: initialize account mutex in lock properly

This commit is contained in:
Martin Holst Swende 2017-06-01 16:16:12 +02:00 committed by Péter Szilágyi
parent 0036e2a747
commit 1a0eb903f1
1 changed files with 3 additions and 2 deletions

View File

@ -212,6 +212,7 @@ type PrivateAccountAPI struct {
func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI {
return &PrivateAccountAPI{
am: b.AccountManager(),
nonceLock: nonceLock,
b: b,
}
}