Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Expand comparision with sp_staking::offence a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Oct 29, 2021
1 parent 4280a4d commit 2c3e567
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/sp-consensus-subspace/src/offence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@

//! Common traits and types that are useful for describing offences for usage in environments
//! that use subspace consensus.
//!
//! ## Comparison with [sp_staking::offence]
//!
//! Unlike [sp_staking::offence] handles both the offline and equivocation offences, there is only
//! equivocation attack in subspace as it's a permissionless consensus based on PoC holding to
//! Nakamoto's vision and does not have a known validator set for the block production.
//!
//! [sp_staking::offence]: https://docs.substrate.io/rustdocs/latest/sp_staking/offence/index.html
use codec::{Decode, Encode};
use scale_info::TypeInfo;
Expand Down

0 comments on commit 2c3e567

Please sign in to comment.