Explorar el Código

internal/ethapi: initialize account mutex in lock properly

Martin Holst Swende hace 8 años
padre
commit
1a0eb903f1
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      internal/ethapi/api.go

+ 3 - 2
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,
 	}
 }