Skip to content
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

fix: broadcast success should be witnessable after a rotation #3921

Merged
merged 3 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bouncer/commands/explorer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env -S pnpm tsx

// Set the node you want to query by setting the `CF_NODE_ENDPOINT` environment variable.
// e.g. CF_NODE_ENDPOINT=wss://perseverance.chainflip.xyz
// Call with a range of blocks to query, like:
// ./explorer.js 1234 1300
// Alternatively, the first argument can be the string "live" to query the latest blocks.
Expand Down
2 changes: 1 addition & 1 deletion state-chain/pallets/cf-broadcast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ pub mod pallet {
signer_id: SignerIdFor<T, I>,
tx_fee: TransactionFeeFor<T, I>,
) -> DispatchResultWithPostInfo {
T::EnsureWitnessedAtCurrentEpoch::ensure_origin(origin.clone())?;
T::EnsureWitnessed::ensure_origin(origin.clone())?;

let broadcast_id = TransactionOutIdToBroadcastId::<T, I>::take(&tx_out_id)
.ok_or(Error::<T, I>::InvalidPayload)?;
Expand Down