Skip to content

Commit 13d35da

Browse files
committed
Fix voting transaction propagation
1 parent 8a3f46a commit 13d35da

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

crates/pallet-executor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ mod pallet {
389389
.priority(TransactionPriority::MAX)
390390
.and_provides(tag)
391391
.longevity(TransactionLongevity::MAX)
392-
// We need this extrinsic to be propagted to the farmer nodes.
392+
// We need this extrinsic to be propagated to the farmer nodes.
393393
.propagate(true)
394394
.build()
395395
}

crates/pallet-subspace/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,8 @@ impl<T: Config> Pallet<T> {
11731173
ValidTransaction::with_tag_prefix("SubspaceRootBlock")
11741174
// We assign the maximum priority for any root block.
11751175
.priority(TransactionPriority::MAX)
1176-
// Should be included immediately into the upcoming block with no exceptions.
1176+
// Should be included immediately into the current block (this is an inherent
1177+
// extrinsic) with no exceptions.
11771178
.longevity(0)
11781179
// We don't propagate this. This can never be included on a remote node.
11791180
.propagate(false)
@@ -1193,7 +1194,8 @@ impl<T: Config> Pallet<T> {
11931194
// We assign the maximum priority for any vote.
11941195
.priority(TransactionPriority::MAX)
11951196
// Should be included in the next block or block after that, but not later
1196-
.longevity(1)
1197+
.longevity(2)
1198+
.and_provides(&signed_vote.signature)
11971199
.build()
11981200
}
11991201

0 commit comments

Comments
 (0)