mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-09 23:27:27 +00:00
956bc300c1
* grab guide updates from approval-voting branch * focus on control flow and behavior, not functions * add approval voting preamble info * tabs -> spaces
17 lines
627 B
Markdown
17 lines
627 B
Markdown
# Candidate Events
|
|
|
|
Yields a vector of events concerning candidates that occurred within the given block.
|
|
|
|
```rust
|
|
enum CandidateEvent {
|
|
/// This candidate receipt was backed in the most recent block.
|
|
CandidateBacked(CandidateReceipt, HeadData, CoreIndex, GroupIndex),
|
|
/// This candidate receipt was included and became a parablock at the most recent block.
|
|
CandidateIncluded(CandidateReceipt, HeadData, CoreIndex, GroupIndex),
|
|
/// This candidate receipt was not made available in time and timed out.
|
|
CandidateTimedOut(CandidateReceipt, HeadData, CoreIndex),
|
|
}
|
|
|
|
fn candidate_events(at: Block) -> Vec<CandidateEvent>;
|
|
```
|