mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Merge pull request #362 from hermeznetwork/feature/updatetxs
Update txs constructors and helpers
This commit is contained in:
@@ -882,6 +882,9 @@ func (tc *Context) FillBlocksExtra(blocks []common.BlockData, cfg *ConfigExtra)
|
||||
position++
|
||||
tc.extra.nonces[tx.FromIdx]++
|
||||
tx.Nonce = tc.extra.nonces[tx.FromIdx]
|
||||
if err := tx.SetID(); err != nil {
|
||||
return err
|
||||
}
|
||||
nTx, err := common.NewL2Tx(tx)
|
||||
if err != nil {
|
||||
return tracerr.Wrap(err)
|
||||
|
||||
Reference in New Issue
Block a user