Skip to content

Commit

Permalink
Disable report_invalid in the vendor'd transaction pool
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwade committed Oct 14, 2024
1 parent ff9808d commit 2f2b123
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vendor/transaction-pool/src/graph/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,11 @@ impl<Hash: hash::Hash + Member, Ex> sc_transaction_pool_api::ReadyTransactions
for BestIterator<Hash, Ex>
{
fn report_invalid(&mut self, tx: &Self::Item) {
BestIterator::report_invalid(self, tx)
// HACK: This is a temparary hack for https://github.com/frequency-chain/frequency/issues/1927
// See the issue for more details
// Why: Valid transactions were being marked as invalid to do blocks
// Cost: Invalid transactions will not be removed from the pool until the node restarts
// BestIterator::report_invalid(self, tx)
}
}

Expand Down

0 comments on commit 2f2b123

Please sign in to comment.