Skip to content

Instantly share code, notes, and snippets.

@aalness
Last active November 5, 2021 04:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aalness/a78e3e35b90f52140f0d to your computer and use it in GitHub Desktop.
Save aalness/a78e3e35b90f52140f0d to your computer and use it in GitHub Desktop.
Finney attack on honest-replace-by-fee
In chronological order:
t1
- spends t0
- pays a1 (to attacker)
t2
- spends t0
- spends t0b
- pays a1 (to attacker)
- pays a2 (to attacker)
- replaces t1
t3
- spends t0b
- pays a3 (merchant)
- less fee than t2
t1 is recognized by all nodes.
t2 is only recognized by RBF nodes.
t3 is only recognized by non-RBF nodes.
If t2 is mined now a Finney attack has been executed on
the merchant with address a3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment