Skip to content
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

mempool: log is rbf with hash and mempool size #12

Open
wants to merge 7 commits into
base: rbf1
Choose a base branch
from

Conversation

tynes
Copy link

@tynes tynes commented Oct 15, 2019

After running this branch on mainnet for awhile, I found this to be useful when watching the logs. It does make a long logline a bit longer, but its debug level so I think its ok.

pinheadmz and others added 7 commits October 14, 2019 15:23
"Quick and dirty" isDoubleSpend() check evaluates to false if the
conflicting tx has opted in to RBF. More verbose checks are still
required for BIP125. General RBF tests added.
Implements and tests BIP125 rules specifically pertaining to
fee requirements for replacement transactions. Valid replacements
must pay a higher fee rate than the original TX, and also must pay for
the bandwidth of all potentially evicted transactions in addition
to its own bandwidth.
Implements two extra rules defined in BIP125:
  - The replacement transaction may only include an unconfirmed input
  if that input was included in one of the original transactions.

  - The number of original transactions to be replaced and their
  descendant transactions which will be evicted from the mempool must
  not exceed a total of 100 transactions.
All the BIP125 rules have been implemented to reject invalid
replacement TXs. This is where the actual replacement happens,
adding the replacement TX and evicting all the conflicts and their
descendants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants