mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Add checks to TxSelector & other:
- Upgrade go-merkletree version to include the last changes of Pebble
that fixes the cgo issues (which should fix #453), from:
c2b05f12d7
- TxSelector
- Remove parameter batchNum for GetL2TxSelection & GetL1L2TxSelection
- Add checks of ToBJJ & ToEthAddr when ToIdx>255
- Avoid getting the sender account twice to get the TokenID of a l2tx
- Add test to check that selected L2Txs are sorted by Nonce
- Discard L2Tx that return error at ProcessL2Txs
- executed `go mod tidy`
This commit is contained in:
@@ -64,7 +64,7 @@ func NewKVDB(pathDB string, keep int) (*KVDB, error) {
|
||||
}
|
||||
|
||||
// make reset (get checkpoint) at currentBatch
|
||||
err = kvdb.reset(kvdb.CurrentBatch, false)
|
||||
err = kvdb.reset(kvdb.CurrentBatch, true)
|
||||
if err != nil {
|
||||
return nil, tracerr.Wrap(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user