You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieving genesis and consequent batches pubdata should not fail and retrieved pubdata should be correct in Rollup mode
Create a genesis batch and a consequent batch.
Insert both batches into the DB.
Commit both batches using RollupModeL1BatchCommitDataGenerator.
Call BlocksDal::get_batch_pubdata using the genesis batch number.
Call BlocksDal::get_batch_pubdata using the genesis consequent batch number.
Check that both calls succeed.
Check that both results are not None and that the retrieved pubdata matches with the created batches pubdata.
Retrieving genesis and consequent batches pubdata should not fail and retrieved pubdata should be correct in Validium mode
Create a genesis batch and a consequent batch.
Insert both batches into the DB.
Commit both batches using ValidiumModeL1BatchCommitDataGenerator.
Call BlocksDal::get_batch_pubdata using the genesis batch number.
Call BlocksDal::get_batch_pubdata using the genesis consequent batch number.
Check that both calls succeed.
Check that both results are not None and that the retrieved pubdata matches with the created batches pubdata.
Retrieving the pubdata from a non-existing batch should fail
Create a genesis batch, insert it into the DB, and commit it.
Call BlocksDal::get_batch_pubdata using a non-existing batch number.
Check that the call succeeds.
Check that the result is None.
Hint: there are useful functions in eth_sender's tests to create, insert, and commit batches. Also, the tests' structure should be pretty similar to them.
The text was updated successfully, but these errors were encountered:
Descripction
Test scenarios
Retrieving genesis and consequent batches
pubdata
should not fail and retrievedpubdata
should be correct in Rollup modeRollupModeL1BatchCommitDataGenerator
.BlocksDal::get_batch_pubdata
using the genesis batch number.BlocksDal::get_batch_pubdata
using the genesis consequent batch number.None
and that the retrievedpubdata
matches with the created batchespubdata
.Retrieving genesis and consequent batches
pubdata
should not fail and retrievedpubdata
should be correct in Validium modeValidiumModeL1BatchCommitDataGenerator
.BlocksDal::get_batch_pubdata
using the genesis batch number.BlocksDal::get_batch_pubdata
using the genesis consequent batch number.None
and that the retrievedpubdata
matches with the created batchespubdata
.Retrieving the pubdata from a non-existing batch should fail
BlocksDal::get_batch_pubdata
using a non-existing batch number.None
.The text was updated successfully, but these errors were encountered: