-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate block production and the new trigger system #712
Conversation
2139680
to
50d0c8a
Compare
50d0c8a
to
98c06cb
Compare
Although I could approve and merge this right now, since both @Dentosal and I worked on this PR we should get some other reviews. |
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.
The change looks good!=)
I'm not sure why we need this line:
// cleanup unfinalized headers (block height + time + producer)
block_db_transaction
.deref_mut()
.storage::<FuelBlocks>()
.remove(&Bytes32::zeroed())?;
And maybe we need to rename produce_block
into produce_block_and_commit
or produce_block_and_execute
to make it clear.
Do we want to move the commit of the block into a separate step in the future?
Fixed `block_producer` test for futures testing to use right config in the TxPool.
Yeah this is kind of ugly, but we need a way to reference the current block during execution for some of the VM opcodes to be able to fetch the current timestamp etc. Since the block id isn't known until execution has completed, it is temporarily stored with a block id of 0x00 for the duration of the execution and then unset at the end. |
* WIP: Use the new trigger instead of manual GQL block production * Manually merge from Voxelots multi-tx-blocks branch * Merge multi-tx-blocks branch * Fix test in CI * Fix all tests with `submit` * working through txpool test failures * fix more tests, move away from setup_tx * investigate why dependency results are different * mostly works * some cleanup * add missing gas prices to fix last test * fix clippy * Fix test * Fix build * goodbye submit_txs * eliminate built-in timeout, let caller use their own timeout mechanism * warnings cleanup * Enable test `block_producer` * Minor changes to improve naming=) * Removed redundant `consensus_params` from `TxPoolConfig`. Fixed `block_producer` test for futures testing to use right config in the TxPool. * Fix "cargo make check --locked" Co-authored-by: Brandon Kite <brandonkite92@gmail.com> Co-authored-by: green <xgreenx9999@gmail.com>
* WIP: Use the new trigger instead of manual GQL block production * Manually merge from Voxelots multi-tx-blocks branch * Merge multi-tx-blocks branch * Fix test in CI * Fix all tests with `submit` * working through txpool test failures * fix more tests, move away from setup_tx * investigate why dependency results are different * mostly works * some cleanup * add missing gas prices to fix last test * fix clippy * Fix test * Fix build * goodbye submit_txs * eliminate built-in timeout, let caller use their own timeout mechanism * warnings cleanup * Enable test `block_producer` * Minor changes to improve naming=) * Removed redundant `consensus_params` from `TxPoolConfig`. Fixed `block_producer` test for futures testing to use right config in the TxPool. * Fix "cargo make check --locked" Co-authored-by: Brandon Kite <brandonkite92@gmail.com> Co-authored-by: green <xgreenx9999@gmail.com>
* WIP: Use the new trigger instead of manual GQL block production * Manually merge from Voxelots multi-tx-blocks branch * Merge multi-tx-blocks branch * Fix test in CI * Fix all tests with `submit` * working through txpool test failures * fix more tests, move away from setup_tx * investigate why dependency results are different * mostly works * some cleanup * add missing gas prices to fix last test * fix clippy * Fix test * Fix build * goodbye submit_txs * eliminate built-in timeout, let caller use their own timeout mechanism * warnings cleanup * Enable test `block_producer` * Minor changes to improve naming=) * Removed redundant `consensus_params` from `TxPoolConfig`. Fixed `block_producer` test for futures testing to use right config in the TxPool. * Fix "cargo make check --locked" Co-authored-by: Brandon Kite <brandonkite92@gmail.com> Co-authored-by: green <xgreenx9999@gmail.com>
* WIP: Use the new trigger instead of manual GQL block production * Manually merge from Voxelots multi-tx-blocks branch * Merge multi-tx-blocks branch * Fix test in CI * Fix all tests with `submit` * working through txpool test failures * fix more tests, move away from setup_tx * investigate why dependency results are different * mostly works * some cleanup * add missing gas prices to fix last test * fix clippy * Fix test * Fix build * goodbye submit_txs * eliminate built-in timeout, let caller use their own timeout mechanism * warnings cleanup * Enable test `block_producer` * Minor changes to improve naming=) * Removed redundant `consensus_params` from `TxPoolConfig`. Fixed `block_producer` test for futures testing to use right config in the TxPool. * Fix "cargo make check --locked" Co-authored-by: Brandon Kite <brandonkite92@gmail.com> Co-authored-by: green <xgreenx9999@gmail.com>
* WIP: Use the new trigger instead of manual GQL block production * Manually merge from Voxelots multi-tx-blocks branch * Merge multi-tx-blocks branch * Fix test in CI * Fix all tests with `submit` * working through txpool test failures * fix more tests, move away from setup_tx * investigate why dependency results are different * mostly works * some cleanup * add missing gas prices to fix last test * fix clippy * Fix test * Fix build * goodbye submit_txs * eliminate built-in timeout, let caller use their own timeout mechanism * warnings cleanup * Enable test `block_producer` * Minor changes to improve naming=) * Removed redundant `consensus_params` from `TxPoolConfig`. Fixed `block_producer` test for futures testing to use right config in the TxPool. * Fix "cargo make check --locked" Co-authored-by: Brandon Kite <brandonkite92@gmail.com> Co-authored-by: green <xgreenx9999@gmail.com>
Closes #677