internal/ethapi: initialize account mutex in lock properly

pull/14570/head
Martin Holst Swende 8 years ago committed by Péter Szilágyi
parent 0036e2a747
commit 1a0eb903f1
  1. 5
      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,
}
}

Loading…
Cancel
Save