mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-11-13 06:07:07 +00:00
feat: initialize Kurdistan SDK - independent fork of Polkadot SDK
This commit is contained in:
commit
e4778b4576
6838 files changed
+1847450
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Disputes Info
|
||||
|
||||
Get information about all disputes known by the chain as well as information about which validators the disputes
|
||||
subsystem will accept disputes from. These disputes may be either live or concluded. The
|
||||
[`DisputeState`](../types/disputes.md#disputestate) can be used to determine whether the dispute still accepts votes, as
|
||||
well as which validators' votes may be included.
|
||||
|
||||
```rust
|
||||
struct Dispute {
|
||||
session: SessionIndex,
|
||||
candidate: CandidateHash,
|
||||
dispute_state: DisputeState,
|
||||
local: bool,
|
||||
}
|
||||
|
||||
struct SpamSlotsInfo {
|
||||
max_spam_slots: u32,
|
||||
session_spam_slots: Vec<(SessionIndex, Vec<u32>)>,
|
||||
}
|
||||
|
||||
struct DisputesInfo {
|
||||
disputes: Vec<Dispute>,
|
||||
spam_slots: SpamSlotsInfo,
|
||||
}
|
||||
|
||||
fn disputes_info() -> DisputesInfo;
|
||||
```
|
||||
Reference in new issue
Block a user