Change BlockHashCount Parameter in Node/Node Template (#5990)

* change BlockHashCount param

* fix test and lock
This commit is contained in:
joe petrowski
2020-05-13 10:46:39 +02:00
committed by GitHub
parent e4edd502bf
commit b718c45dbd
4 changed files with 4 additions and 4 deletions
@@ -123,7 +123,7 @@ pub fn native_version() -> NativeVersion {
} }
parameter_types! { parameter_types! {
pub const BlockHashCount: BlockNumber = 250; pub const BlockHashCount: BlockNumber = 2400;
/// We allow for 2 seconds of compute with a 6 second average block time. /// We allow for 2 seconds of compute with a 6 second average block time.
pub const MaximumBlockWeight: Weight = 2 * WEIGHT_PER_SECOND; pub const MaximumBlockWeight: Weight = 2 * WEIGHT_PER_SECOND;
pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75); pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);
@@ -233,7 +233,7 @@ fn submitted_transaction_should_be_valid() {
priority: 1_410_710_000_000, priority: 1_410_710_000_000,
requires: vec![], requires: vec![],
provides: vec![(address, 0).encode()], provides: vec![(address, 0).encode()],
longevity: 128, longevity: 2048,
propagate: true, propagate: true,
}); });
}); });
+1 -1
View File
@@ -124,7 +124,7 @@ impl OnUnbalanced<NegativeImbalance> for DealWithFees {
} }
parameter_types! { parameter_types! {
pub const BlockHashCount: BlockNumber = 250; pub const BlockHashCount: BlockNumber = 2400;
/// We allow for 2 seconds of compute with a 6 second average block time. /// We allow for 2 seconds of compute with a 6 second average block time.
pub const MaximumBlockWeight: Weight = 2 * WEIGHT_PER_SECOND; pub const MaximumBlockWeight: Weight = 2 * WEIGHT_PER_SECOND;
pub const MaximumBlockLength: u32 = 5 * 1024 * 1024; pub const MaximumBlockLength: u32 = 5 * 1024 * 1024;
+1 -1
View File
@@ -378,7 +378,7 @@ impl From<frame_system::Event<Runtime>> for Event {
} }
parameter_types! { parameter_types! {
pub const BlockHashCount: BlockNumber = 250; pub const BlockHashCount: BlockNumber = 2400;
pub const MinimumPeriod: u64 = 5; pub const MinimumPeriod: u64 = 5;
pub const MaximumBlockWeight: Weight = 4 * 1024 * 1024; pub const MaximumBlockWeight: Weight = 4 * 1024 * 1024;
pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight { pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight {