Commit 1a0eb903 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by Péter Szilágyi

internal/ethapi: initialize account mutex in lock properly

parent 0036e2a7
...@@ -212,6 +212,7 @@ type PrivateAccountAPI struct { ...@@ -212,6 +212,7 @@ type PrivateAccountAPI struct {
func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI { func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI {
return &PrivateAccountAPI{ return &PrivateAccountAPI{
am: b.AccountManager(), am: b.AccountManager(),
nonceLock: nonceLock,
b: b, b: b,
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment