-
Notifications
You must be signed in to change notification settings - Fork 86
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
Control block forging through NodeKernel #3800
Commits on Nov 21, 2022
-
Added setBlockForging to NodeKernel
Block forging is removed from ProtocolInfo, and can controlled by using `NodeKernel` field: `setProtocolForging :: [BlockForging m blk] -> m ()`.
Configuration menu - View commit details
-
Copy full SHA for 7fc8400 - Browse repository at this point
Copy the full SHA 7fc8400View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc8dde0 - Browse repository at this point
Copy the full SHA bc8dde0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e27ef02 - Browse repository at this point
Copy the full SHA e27ef02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5efb284 - Browse repository at this point
Copy the full SHA 5efb284View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fb7b5c - Browse repository at this point
Copy the full SHA 7fb7b5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81315eb - Browse repository at this point
Copy the full SHA 81315ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 363922b - Browse repository at this point
Copy the full SHA 363922bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a8323d - Browse repository at this point
Copy the full SHA 1a8323dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b36280 - Browse repository at this point
Copy the full SHA 6b36280View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38c9bd1 - Browse repository at this point
Copy the full SHA 38c9bd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8272447 - Browse repository at this point
Copy the full SHA 8272447View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5136720 - Browse repository at this point
Copy the full SHA 5136720View commit details -
Make forkBlockForging async safe
When make sure that when a block is added to the ChainDB, transactions will be removed from the mempool. The 'addBlockAsync' is a lightweight non-blocking operation but the finalizer is blocking (`blockProcessed` will block until the block was added to the ChainDB). Hence we need to use `uninterruptibleMask_` to make it safe in presence of asynchronous exceptions.
Configuration menu - View commit details
-
Copy full SHA for 4a5fdb7 - Browse repository at this point
Copy the full SHA 4a5fdb7View commit details -
block-forging: async exception safety
When the block forger thread adds a new block, the adding thread might be killed by an async exception. If that happens, the block forger will get 'Nothing' when `blockProcessed` returns, and it can exit.
Configuration menu - View commit details
-
Copy full SHA for 479a900 - Browse repository at this point
Copy the full SHA 479a900View commit details -
block-forging: updated upstream dependencies
* ouroboros-consensus-test * ouroboros-consensus-cardano-tools
Configuration menu - View commit details
-
Copy full SHA for b62cc7a - Browse repository at this point
Copy the full SHA b62cc7aView commit details -
addBlock, addBlock_ shouldn't be partial functions
`addBlock_` is used by `initNodeKernel` when calling the `initChainDB` callback from `NodeKernelArgs`.
Configuration menu - View commit details
-
Copy full SHA for c102d99 - Browse repository at this point
Copy the full SHA c102d99View commit details