Skip to content
Episode 38: Replace-by-Fee Bug episode artwork

May 21, 2021 20 min

Episode 38: Replace-by-Fee Bug

from Bitcoin, Explained — The Technical Side of Bitcoin

In this Episode of The Van Wirdum Sjorsnado, hosts Aaron van Wirdum and Sjors Provoost discuss CVE-2021-31876, a bug in the Bitcoin Core code that affects replace-by-fee (RBF) child transactions. The CVE (Common Vulnerabilities and Exposures) system offers an overview of publicly known software bugs. A newly discovered bug in the Bitcoin Core code was recently discovered and disclosed by Antoine Riard, and added to the CVE overview. Aaron and Sjors explain that the bug affects how RBF logic is handled by the Bitcoin Core software. When one unconfirmed transaction includes an RBF flag (which means it should be considered replaceable if a conflicting transaction with a higher fee is broadcast over the network) any following transaction that spends coins from the original transaction should also be considered replaceable — even if the second transaction doesn’t itself have an RBF flag. Bitcoin Core software would not do this, however, which means the second transaction would in fact not be considered replaceable. This is a fairly innocent bug; in most cases the second transaction will still confirm eventually, while there are also other solutions to speed confirmation up if the included fee is too low. But in very specific cases, like some fallback security mechanisms on the Lightning Network, the bug could in fact cause complications. Aaron and Sjors try to explain what such a scenario would look like — badly. Chapters 00:00:00 CVE-2021-31876 and replace-by-fee 00:05:25 The missing inherited-RBF rule 00:07:48 Lightning HTLCs, secrets and timeouts 00:11:30 HTLC confirmation deadlines and RBF failure 00:17:54 How serious is the bug, and can it be fixed?

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Episode 38: Replace-by-Fee Bug

0:00 20:20

Chapters

  1. 0:00 CVE-2021-31876 and replace-by-fee
  2. 5:25 The missing inherited-RBF rule
  3. 7:48 Lightning HTLCs, secrets and timeouts
  4. 11:30 HTLC confirmation deadlines and RBF failure
  5. 17:54 How serious is the bug, and can it be fixed?

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Bitcoin, Explained — The Technical Side of Bitcoin?

This episode is 20 minutes long.

When was this Bitcoin, Explained — The Technical Side of Bitcoin episode published?

This episode was published on May 21, 2021.

Can I download this Bitcoin, Explained — The Technical Side of Bitcoin episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.