Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix reimporting transactions from retracted blocks. #4250

Merged
merged 1 commit into from Dec 1, 2019
Merged

Conversation

tomusdrw
Copy link
Contributor

@tomusdrw tomusdrw commented Nov 29, 2019

Most of the chains will not really use a runtime-type of UncheckedExtrinsic for their in-block extrinsic type, but rather the node will only know about OpaqueExtrinsic type.
This type implements Extrinsic trait, however is_signed always returns None.

The fix makes sure we re-import transactions even though is_signed is None, and we also tone-down the warning level (which seemed to be a reason to add that check in the first place).

Additionally some small changes to add logging and an attempt to clean the naming of methods (remove_invalid vs remove_subtree). This is an intro to a bigger change which would be periodic revalidation of transactions in the pool.

Should fix #4107

@tomusdrw tomusdrw added A0-please_review Pull request needs code review. M4-core labels Nov 29, 2019
@gavofyork gavofyork merged commit 77324be into master Dec 1, 2019
@gavofyork gavofyork deleted the td-pool branch December 1, 2019 09:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transactions are delayed in the network when a fork occurs
3 participants