mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-09 22:17:29 +00:00
Prepare stuff for Kusama (i.e. disable most things) (#362)
* Prepare stuff for Kusama (i.e. disable most things) * Fix service (hopefully) * Remove curated grandpa. * Block unwanted transactions a cleaner way. * Add feature for restricting tx types * Cleanups * Make blocktime 1/10th of normal * Fix ordering in construct_runtime * Restore original timing * Revert name change
This commit is contained in:
@@ -29,7 +29,6 @@ pub mod currency {
|
||||
pub mod time {
|
||||
use primitives::{Moment, BlockNumber};
|
||||
pub const MILLISECS_PER_BLOCK: Moment = 6000;
|
||||
pub const SECS_PER_BLOCK: Moment = MILLISECS_PER_BLOCK / 1000;
|
||||
|
||||
pub const SLOT_DURATION: Moment = 1650;
|
||||
|
||||
@@ -41,7 +40,7 @@ pub mod time {
|
||||
};
|
||||
|
||||
// These time units are defined in number of blocks.
|
||||
pub const MINUTES: BlockNumber = 60 / (SECS_PER_BLOCK as BlockNumber);
|
||||
pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
|
||||
pub const HOURS: BlockNumber = MINUTES * 60;
|
||||
pub const DAYS: BlockNumber = HOURS * 24;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user