Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Testing Reversion Speed on Dispute Concluded Against #6880

Merged
merged 7 commits into from
Mar 16, 2023

Conversation

BradleyOlson64
Copy link
Contributor

When a dispute has concluded against a parablock candidate we then want to revert all relay chain blocks on all forks including that candidate. Previously the signal to revert relay chain blocks was only passed on-chain. This meant at least one block worth of wasted effort from block builders as they waited for the concluded dispute to be seen in a block. This change #6512 created a new off-chain means of notifying chain selection when a dispute concludes.

The logs added in this PR allow us to get a coarse view as to whether the new off-chain means is giving us our expected performance boost.

@BradleyOlson64 BradleyOlson64 self-assigned this Mar 14, 2023
@BradleyOlson64 BradleyOlson64 linked an issue Mar 14, 2023 that may be closed by this pull request
@BradleyOlson64 BradleyOlson64 added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Mar 14, 2023
gum::trace!(
target: LOG_TARGET,
?revert_number,
?revert_hash,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use same key as above: revert_hash or block_hash

@@ -359,6 +359,9 @@ fn apply_ancestor_reversions(
// of unviability is only heavy on the first log.
for revert_number in reversions {
let maybe_block_entry = load_ancestor(backend, block_hash, block_number, revert_number)?;
if let Some(block_entry) = &maybe_block_entry {
gum::trace!(target: LOG_TARGET, ?revert_number, ?block_entry.block_hash, "Block marked as reverted via scraped on-chain reversions");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: cargo fmt does not work for macros, it's not that critical, but it's better to fold the lines manually to fit into 100 chars

@BradleyOlson64
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Error: Statuses failed for cd1e69c

@BradleyOlson64
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit a23fc42 into master Mar 16, 2023
@paritytech-processbot paritytech-processbot bot deleted the brad-issue-6735 branch March 16, 2023 18:56
ordian added a commit that referenced this pull request Mar 21, 2023
* master:
  kusama: enable dispute slashes (#5974)
  Introduce OpenGov into Polkadot (#6701)
  introduce new well known key (#6915)
  [CI] Add bootnode checking CI jobs (#6889)
  Bump parity-db (#6921)
  Handling timers for repeat dispute participation requests (#6901)
  [Companion #13634] keystore overhaul (iter2) (#6913)
  tweak some pattern matches to address a new clippy warning
  Bump ci-linux image for rust 1.68
  Revert "Update orchestra to the recent version (#6854)" (#6916)
  Deprecate Currency: Companion for #12951 (#6780)
  changelog: template fixup (#6907)
  [Companion #13615] Keystore overhaul (#6892)
  update weights (#6897)
  Fix approval voting test (#6898)
  parachains-runtime: Less cloning! (#6896)
  Testing Reversion Speed on Dispute Concluded Against (#6880)
  remove duplicated arm and fix version index (#6884)
ordian added a commit that referenced this pull request Mar 21, 2023
* master:
  kusama: enable dispute slashes (#5974)
  Introduce OpenGov into Polkadot (#6701)
  introduce new well known key (#6915)
  [CI] Add bootnode checking CI jobs (#6889)
  Bump parity-db (#6921)
  Handling timers for repeat dispute participation requests (#6901)
  [Companion #13634] keystore overhaul (iter2) (#6913)
  tweak some pattern matches to address a new clippy warning
  Bump ci-linux image for rust 1.68
  Revert "Update orchestra to the recent version (#6854)" (#6916)
  Deprecate Currency: Companion for #12951 (#6780)
  changelog: template fixup (#6907)
  [Companion #13615] Keystore overhaul (#6892)
  update weights (#6897)
  Fix approval voting test (#6898)
  parachains-runtime: Less cloning! (#6896)
  Testing Reversion Speed on Dispute Concluded Against (#6880)
  remove duplicated arm and fix version index (#6884)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants