mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
internal/ethapi: initialize account mutex in lock properly
This commit is contained in:
parent
0036e2a747
commit
1a0eb903f1
1 changed files with 3 additions and 2 deletions
|
|
@ -211,8 +211,9 @@ type PrivateAccountAPI struct {
|
||||||
// NewPrivateAccountAPI create a new PrivateAccountAPI.
|
// NewPrivateAccountAPI create a new PrivateAccountAPI.
|
||||||
func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI {
|
func NewPrivateAccountAPI(b Backend, nonceLock *AddrLocker) *PrivateAccountAPI {
|
||||||
return &PrivateAccountAPI{
|
return &PrivateAccountAPI{
|
||||||
am: b.AccountManager(),
|
am: b.AccountManager(),
|
||||||
b: b,
|
nonceLock: nonceLock,
|
||||||
|
b: b,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue