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

Fix: Off-chain-worker example #13300

Merged
merged 2 commits into from
Feb 6, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
update comment
  • Loading branch information
cuteolaf committed Feb 6, 2023
commit 881f9bdbede9fdf1328dd0c27ebd046d627267a3
3 changes: 1 addition & 2 deletions frame/examples/offchain-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,7 @@ impl<T: Config> Pallet<T> {
match res {
// The value has been set correctly, which means we can safely send a transaction now.
Ok(block_number) => {
// Depending if the block is even or odd we will send a `Signed` or `Unsigned`
// transaction.
// We will send different transactions based on a random number.
// Note that this logic doesn't really guarantee that the transactions will be sent
// in an alternating fashion (i.e. fairly distributed). Depending on the execution
// order and lock acquisition, we may end up for instance sending two `Signed`
Expand Down