mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Merge pull request #613 from hermeznetwork/fix/zkinputs-ISExitRoot-L1CoordTxs
Fix ZKInputs.ISExitRoot for case of L1CoordTxs
This commit is contained in:
@@ -340,6 +340,7 @@ func (tp *TxProcessor) ProcessTxs(coordIdxs []common.Idx, l1usertxs, l1coordinat
|
|||||||
|
|
||||||
tp.zki.ISOutIdx[tp.i] = tp.s.CurrentIdx().BigInt()
|
tp.zki.ISOutIdx[tp.i] = tp.s.CurrentIdx().BigInt()
|
||||||
tp.zki.ISStateRoot[tp.i] = tp.s.MT.Root().BigInt()
|
tp.zki.ISStateRoot[tp.i] = tp.s.MT.Root().BigInt()
|
||||||
|
tp.zki.ISExitRoot[tp.i] = exitTree.Root().BigInt()
|
||||||
tp.i++
|
tp.i++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1333,7 +1334,7 @@ func (tp *TxProcessor) applyExit(coordIdxsMap map[common.TokenID]common.Idx,
|
|||||||
}
|
}
|
||||||
return exitAccount, true, nil
|
return exitAccount, true, nil
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return exitAccount, false, tracerr.Wrap(err)
|
return nil, false, tracerr.Wrap(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1b. if idx already exist in exitTree:
|
// 1b. if idx already exist in exitTree:
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user