mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Merge pull request #611 from hermeznetwork/feature/sync-l1-account-creation-auth
Synchronize the AccountCreationAuths from L1CoordinatorTxs
This commit is contained in:
@@ -1897,12 +1897,16 @@ func (c *Client) CtlAddBlocks(blocks []common.BlockData) (err error) {
|
||||
}
|
||||
c.CtlSetAddr(auction.Vars.BootCoordinator)
|
||||
for _, batch := range block.Rollup.Batches {
|
||||
auths := make([][]byte, len(batch.L1CoordinatorTxs))
|
||||
for i := range auths {
|
||||
auths[i] = make([]byte, 65)
|
||||
}
|
||||
if _, err := c.RollupForgeBatch(ð.RollupForgeBatchArgs{
|
||||
NewLastIdx: batch.Batch.LastIdx,
|
||||
NewStRoot: batch.Batch.StateRoot,
|
||||
NewExitRoot: batch.Batch.ExitRoot,
|
||||
L1CoordinatorTxs: batch.L1CoordinatorTxs,
|
||||
L1CoordinatorTxsAuths: [][]byte{}, // Intentionally empty
|
||||
L1CoordinatorTxsAuths: auths,
|
||||
L2TxsData: batch.L2Txs,
|
||||
FeeIdxCoordinator: batch.Batch.FeeIdxsCoordinator,
|
||||
// Circuit selector
|
||||
|
||||
Reference in New Issue
Block a user