mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Fix exit tree nonces
Remove increment in exit tree leaf nonce when there are multiple exits for the same account in the same batch. Add a test to verify the correct implementation of exit leafs caused by multiple exits.
This commit is contained in:
@@ -1134,7 +1134,6 @@ func (tp *TxProcessor) applyExit(coordIdxsMap map[common.TokenID]common.Idx,
|
||||
} else if err != nil {
|
||||
return exitAccount, false, tracerr.Wrap(err)
|
||||
}
|
||||
exitAccount.Nonce = exitAccount.Nonce + 1
|
||||
|
||||
// 1b. if idx already exist in exitTree:
|
||||
if tp.zki != nil {
|
||||
|
||||
Reference in New Issue
Block a user