Skip to content

Commit

Permalink
Update BABE README.md (paritytech#4138)
Browse files Browse the repository at this point in the history
Link was dead

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
  • Loading branch information
2 people authored and liuchengxu committed Jun 19, 2024
1 parent 1405a1e commit cd3fab5
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .config/lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ exclude = [
"https://github.com/zkcrypto/bls12_381/blob/e224ad4ea1babfc582ccd751c2bf128611d10936/src/test-data/mod.rs",
"https://polkadot-try-runtime-node.parity-chains.parity.io/",
"https://polkadot.network/the-path-of-a-parachain-block/",
"https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results",
"https://research.web3.foundation/en/latest/polkadot/NPoS/3.%20Balancing.html",
"https://research.web3.foundation/en/latest/polkadot/Token%20Economics.html#inflation-model",
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html",
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html#-6.-practical-results",
"https://research.web3.foundation/en/latest/polkadot/networking/3-avail-valid.html#topology",
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html",
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html#inflation-model",
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/rococo/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub mod time {
// 1 in 4 blocks (on average, not counting collisions) will be primary babe blocks.
// The choice of is done in accordance to the slot duration and expected target
// block time, for safely resisting network delays of maximum two seconds.
// <https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results>
// <https://research.web3.foundation/Polkadot/protocols/block-production/Babe#6-practical-results>
pub const PRIMARY_PROBABILITY: (u64, u64) = (1, 4);
}

Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/test-runtime/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub mod time {
// 1 in 4 blocks (on average, not counting collisions) will be primary babe blocks.
// The choice of is done in accordance to the slot duration and expected target
// block time, for safely resisting network delays of maximum two seconds.
// <https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results>
// <https://research.web3.foundation/Polkadot/protocols/block-production/Babe#6-practical-results>
pub const PRIMARY_PROBABILITY: (u64, u64) = (1, 4);
}

Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/westend/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub mod time {
// 1 in 4 blocks (on average, not counting collisions) will be primary babe blocks.
// The choice of is done in accordance to the slot duration and expected target
// block time, for safely resisting network delays of maximum two seconds.
// <https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results>
// <https://research.web3.foundation/Polkadot/protocols/block-production/Babe#6-practical-results>
pub const PRIMARY_PROBABILITY: (u64, u64) = (1, 4);
}

Expand Down
2 changes: 1 addition & 1 deletion substrate/bin/node/runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub mod time {
/// always be assigned, in which case `MILLISECS_PER_BLOCK` and
/// `SLOT_DURATION` should have the same value.
///
/// <https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html#-6.-practical-results>
/// <https://research.web3.foundation/Polkadot/protocols/block-production/Babe#6-practical-results>
pub const MILLISECS_PER_BLOCK: Moment = 3000;
pub const SECS_PER_BLOCK: Moment = MILLISECS_PER_BLOCK / 1000;

Expand Down
2 changes: 1 addition & 1 deletion substrate/client/consensus/babe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ primary blocks in the chain. We will pick the heaviest chain (more primary
blocks) and will go with the longest one in case of a tie.

An in-depth description and analysis of the protocol can be found here:
<https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html>
<https://research.web3.foundation/Polkadot/protocols/block-production/Babe>

License: GPL-3.0-or-later WITH Classpath-exception-2.0
2 changes: 1 addition & 1 deletion substrate/client/consensus/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
//! blocks) and will go with the longest one in case of a tie.
//!
//! An in-depth description and analysis of the protocol can be found here:
//! <https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html>
//! <https://research.web3.foundation/Polkadot/protocols/block-production/Babe>

#![forbid(unsafe_code)]
#![warn(missing_docs)]
Expand Down

0 comments on commit cd3fab5

Please sign in to comment.