-
Notifications
You must be signed in to change notification settings - Fork 254
Introduce bundle longevity #2586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
06bb6de
d3dee67
96fd944
331a805
bb37b1a
f1b60a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,6 +187,7 @@ parameter_types! { | |
pub const DomainChainByteFee: Balance = 1; | ||
pub const MaxInitialDomainAccounts: u32 = 5; | ||
pub const MinInitialDomainAccountBalance: Balance = SSC; | ||
pub const BundleLongevity: u32 = 5; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why cannot we use the BlockSlotCount instead of creating a new type in config ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
||
pub struct MockRandomness; | ||
|
@@ -218,13 +219,13 @@ impl StorageFee<Balance> for DummyStorageFee { | |
|
||
pub struct DummyBlockSlot; | ||
|
||
impl BlockSlot for DummyBlockSlot { | ||
fn current_slot() -> sp_consensus_slots::Slot { | ||
0u64.into() | ||
impl BlockSlot<Test> for DummyBlockSlot { | ||
fn future_slot(_block_number: BlockNumberFor<Test>) -> Option<sp_consensus_slots::Slot> { | ||
Some(0u64.into()) | ||
} | ||
|
||
fn future_slot() -> sp_consensus_slots::Slot { | ||
0u64.into() | ||
fn slot_produced_after(_slot: sp_consensus_slots::Slot) -> Option<BlockNumberFor<Test>> { | ||
Some(0u64) | ||
} | ||
} | ||
|
||
|
@@ -310,6 +311,7 @@ impl pallet_domains::Config for Test { | |
type DomainsTransfersTracker = MockDomainsTransfersTracker; | ||
type MaxInitialDomainAccounts = MaxInitialDomainAccounts; | ||
type MinInitialDomainAccountBalance = MinInitialDomainAccountBalance; | ||
type BundleLongevity = BundleLongevity; | ||
type ConsensusSlotProbability = SlotProbability; | ||
type DomainBundleSubmitted = (); | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.