1

I am trying to track transactions in the mempool that utilize Replace-By-Fee (RBF). My approach involves saving the current transactions in the mempool and comparing them to newly added transactions. If a new transaction shares inputs with a previously saved transaction, I infer that it replaced the original transaction via RBF. In such cases, I save both the original and the replacement transactions for further analysis.

My question is, if instead of doing all this, is there any method in which the Bitcoin core to tell me when a transaction has used RBF.

1 Answer 1

0

You could compile Bitcoin Core with tracing enabled and listen to the mempool:replaced tracepoint.

If I remember right, User-space, Statically Defined Tracing (USDT) only works on Linux, and you will need to install the corresponding packages bpftrace and BCC.

Also see:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.