|
@ -27,6 +27,7 @@ type testBatch struct { |
|
|
ExitRoot string `json:"exitRoot"` |
|
|
ExitRoot string `json:"exitRoot"` |
|
|
ForgeL1TxsNum *int64 `json:"forgeL1TransactionsNum"` |
|
|
ForgeL1TxsNum *int64 `json:"forgeL1TransactionsNum"` |
|
|
SlotNum int64 `json:"slotNum"` |
|
|
SlotNum int64 `json:"slotNum"` |
|
|
|
|
|
ForgedTxs int `json:"forgedTransactions"` |
|
|
} |
|
|
} |
|
|
type testBatchesResponse struct { |
|
|
type testBatchesResponse struct { |
|
|
Batches []testBatch `json:"batches"` |
|
|
Batches []testBatch `json:"batches"` |
|
@ -73,6 +74,12 @@ func genTestBatches( |
|
|
for k, v := range cBatches[i].CollectedFees { |
|
|
for k, v := range cBatches[i].CollectedFees { |
|
|
collectedFees[k] = v.String() |
|
|
collectedFees[k] = v.String() |
|
|
} |
|
|
} |
|
|
|
|
|
forgedTxs := 0 |
|
|
|
|
|
for _, tx := range txs { |
|
|
|
|
|
if tx.BatchNum != nil && *tx.BatchNum == cBatches[i].BatchNum { |
|
|
|
|
|
forgedTxs++ |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
tBatch := testBatch{ |
|
|
tBatch := testBatch{ |
|
|
BatchNum: cBatches[i].BatchNum, |
|
|
BatchNum: cBatches[i].BatchNum, |
|
|
EthBlockNum: cBatches[i].EthBlockNum, |
|
|
EthBlockNum: cBatches[i].EthBlockNum, |
|
@ -86,6 +93,7 @@ func genTestBatches( |
|
|
ExitRoot: cBatches[i].ExitRoot.String(), |
|
|
ExitRoot: cBatches[i].ExitRoot.String(), |
|
|
ForgeL1TxsNum: cBatches[i].ForgeL1TxsNum, |
|
|
ForgeL1TxsNum: cBatches[i].ForgeL1TxsNum, |
|
|
SlotNum: cBatches[i].SlotNum, |
|
|
SlotNum: cBatches[i].SlotNum, |
|
|
|
|
|
ForgedTxs: forgedTxs, |
|
|
} |
|
|
} |
|
|
tBatches = append(tBatches, tBatch) |
|
|
tBatches = append(tBatches, tBatch) |
|
|
} |
|
|
} |
|
|