good morning!!!!

Skip to content
Snippets Groups Projects
Commit d423305f authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

state: fixed nonce issue in managed state

Rlock => Lock when creating a new nonce
parent d61ec9ca
Branches
Tags
No related merge requests found
......@@ -52,8 +52,8 @@ func (ms *ManagedState) RemoveNonce(addr common.Address, n uint64) {
// NewNonce returns the new canonical nonce for the managed account
func (ms *ManagedState) NewNonce(addr common.Address) uint64 {
ms.mu.RLock()
defer ms.mu.RUnlock()
ms.mu.Lock()
defer ms.mu.Unlock()
account := ms.getAccount(addr)
for i, nonce := range account.nonces {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment