- Notifications
You must be signed in to change notification settings - Fork 56
Proposer to propose multiple L2 blocks at once #553
New issue
Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.
By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on ? Sign in to your account
Conversation
5cc86b4
to 710f593
Compare cd3054a
to 39c6925
Compare fb920f2
to 4a7c938
Compare There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
44a5e7f
to 8959da1
Compare c3c1c62
to 1ac8955
Compare During the tests I checked the message sent by
|
How is |
It's the
|
Feature #478
Feature
Once the current proposer changes, the new current proposer can submit multiple blocks at once.
MAX_L2_BLOCKS_TO_PROPOSE = Number of L1 blocks a proposer gets * the number of L2 blocks can fit in each L1
. This assumes that L1 blocks are completely filled with NF's L2 block proposed transactions, this might need to be corrected by a factorActions
conditionalMakeBlock to create
numberOfUnprocessedTransactions / TRANSACTIONS_PER_BLOCK
blocks instead of just 1. This should allow us to build multiple blocks before having to process the events with their 12 confirmation wait in 0th queue.Block.build
and pass the parameters needed instead.makeBlock
to return list of blocks and transactions per block instead of single block.proposeBlock
.Test
Created a test for this functionality. A user will create some deposits without a proposer and then a proposer will register and start to get all pending L2 blocks proposed txs to be proposed at once.
./start-nightfall -g -s -d
npm run test-e2e-protocol
that includesproposer should propose multiple L2 blocks after deposits
test.