-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Increase priority of ImOnline heartbeats #3972
Changes from all commits
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 |
|---|---|---|
|
|
@@ -80,6 +80,7 @@ use sr_primitives::{ | |
| traits::{Convert, Member, Printable, Saturating}, Perbill, | ||
| transaction_validity::{ | ||
| TransactionValidity, TransactionLongevity, ValidTransaction, InvalidTransaction, | ||
| TransactionPriority, | ||
| }, | ||
| }; | ||
| use sr_staking_primitives::{ | ||
|
|
@@ -532,7 +533,7 @@ impl<T: Trait> support::unsigned::ValidateUnsigned for Module<T> { | |
| } | ||
|
|
||
| Ok(ValidTransaction { | ||
| priority: 0, | ||
| priority: TransactionPriority::max_value(), | ||
|
Contributor
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. is there anything to stop validators from issuing too many heartbeats?
Contributor
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. Had the same question. My second thought was that this might be a common problem among operational transactions.
Contributor
Author
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. Since
Contributor
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. OK, thanks for the clarification. |
||
| requires: vec![], | ||
| provides: vec![(current_session, authority_id).encode()], | ||
| longevity: TransactionLongevity::max_value(), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this change actually alters behavior of the runtime it looks like the
spec_versionshould be bumped as well.