mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +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:
@@ -385,7 +385,10 @@ func (tc *Context) setIdxs() error {
|
||||
}
|
||||
}
|
||||
tc.Users[testTx.fromIdxName].Accounts[testTx.tokenID].Nonce++
|
||||
testTx.L2Tx.Nonce = tc.Users[testTx.fromIdxName].Accounts[testTx.tokenID].Nonce
|
||||
// next line is commented to avoid Blockchain L2Txs to have
|
||||
// Nonce different from 0, as from Blockchain those
|
||||
// transactions will come without Nonce
|
||||
// testTx.L2Tx.Nonce = tc.Users[testTx.fromIdxName].Accounts[testTx.tokenID].Nonce
|
||||
|
||||
// set real Idx
|
||||
testTx.L2Tx.FromIdx = tc.Users[testTx.fromIdxName].Accounts[testTx.tokenID].Idx
|
||||
|
||||
Reference in New Issue
Block a user