-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Assem <asem.hasna@gmail.com> Co-authored-by: tomjohnburton <39559415+tomjohnburton@users.noreply.github.com>
- Loading branch information
1 parent
5fdba98
commit 70f1db1
Showing
15 changed files
with
625 additions
and
219 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
225 changes: 115 additions & 110 deletions
225
state-chain/node/chainspecs/berghain.chainspec.raw.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
use cf_primitives::AuthorityCount; | ||
use state_chain_runtime::SetSizeParameters; | ||
|
||
pub use super::common::*; | ||
|
||
// These represent approximately 10 minutes in localnet block times | ||
// Bitcoin blocks are 5 seconds on localnets. | ||
pub const BITCOIN_EXPIRY_BLOCKS: u32 = 10 * 60 / 5; | ||
pub const ETHEREUM_EXPIRY_BLOCKS: u32 = 10 * 60 / 14; | ||
pub const POLKADOT_EXPIRY_BLOCKS: u32 = 10 * 60 / 6; | ||
|
||
pub const MIN_AUTHORITIES: AuthorityCount = 1; | ||
pub const AUCTION_PARAMETERS: SetSizeParameters = SetSizeParameters { | ||
min_size: MIN_AUTHORITIES, | ||
max_size: MAX_AUTHORITIES, | ||
max_expansion: MAX_AUTHORITIES, | ||
}; |
Oops, something went wrong.