Staking async on Basti blocks#12202
Conversation
|
DQ to understand the context 😅 what we want to achieve here is the integration plumbing that proves So without the page count increase, the In theory, if we make sure to have pages small enough (256 was a tentative number, to be measured) before we enable 500ms, the trick wouldn't even be required because election would spread around many mini blocks. We could keep it as complementary defense measure but sounds less critical than landing the page increase stuff. Please challenge everything I have written here - need to have a better look at all the BB machinery. |
| .saturating_add(T::DbWeight::get().reads(1)); // Reading current phase | ||
|
|
||
| // Check if there's enough weight left in the block | ||
| let remaining_weight_meter = frame_system::Pallet::<T>::remaining_block_weight(); |
There was a problem hiding this comment.
If we're checking for weight here, wouldn't on_poll then behave like on_initialize? This hook runs before all inherents (and transactions), so the remaining weight stays high at this point, right?
There was a problem hiding this comment.
on_poll is changed to on_initialize here, so does this answer your question?
| args = [ | ||
| # fork-aware pool's background task crashes within ~30s on this fast-runtime | ||
| # setup, taking the chain down before session 1 begins. Pin to single-state | ||
| # until the upstream issue is fixed. |
There was a problem hiding this comment.
can you link to GH's upstream issue here as well?
There was a problem hiding this comment.
So this has come from iterating with Claude
There is no opened issue yet, but things to keep in mind that were happening:
- The chain died ~30s in with --pool-type=fork-aware (the default)
- Switching to --pool-type=single-state fixed it
There was a problem hiding this comment.
This is not a good solution for the main chains, we need to investigate further.
|
I would suggest as dirty-and-quick test to try to run zombienet on staking testnet with |
WIP staking on Basti blocks running at 500ms