mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
ProcessTxs fees collct update & tests, and other:
- Update StateDB ProcessTxs fees collection - Update ProcessTxs tests to last StateDB & Til changes - Til Blockchain L2Txs remove Nonce generation, update tests accordingly - Update Til Set to test fees
This commit is contained in:
@@ -24,6 +24,7 @@ import (
|
||||
|
||||
var tokenConsts = map[common.TokenID]eth.ERC20Consts{}
|
||||
var forceExits = map[int64][]common.ExitInfo{} // ForgeL1TxsNum -> []exit
|
||||
var nonces = map[common.Idx]common.Nonce{}
|
||||
|
||||
type timer struct {
|
||||
time int64
|
||||
@@ -441,6 +442,8 @@ func TestSync(t *testing.T) {
|
||||
tx := &batch.L2Txs[k]
|
||||
tx.Position = position
|
||||
position++
|
||||
nonces[tx.FromIdx]++
|
||||
tx.Nonce = nonces[tx.FromIdx]
|
||||
nTx, err := common.NewL2Tx(tx)
|
||||
require.Nil(t, err)
|
||||
*tx = *nTx
|
||||
|
||||
Reference in New Issue
Block a user