Skip to content

Commit

Permalink
fix: broadcast success should be witnessable after a rotation (#3921)
Browse files Browse the repository at this point in the history
* fix: broadcast success should be witnessable after a rotation

* chore: fix bouncer lint

* chore: actually fix linting
  • Loading branch information
kylezs authored and martin-chainflip committed Aug 30, 2023
1 parent 9c10ccd commit e998326
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit e998326

Please sign in to comment.