Bitcoin Replace-By-Fee guide: fix stuck transactions, do doublespends

Enable RBF in Electrum wallet
... 
"inputs": [
{
"addresses": [ "...." ],
"output_index": 0,
"output_value": 1010000,
"prev_hash": "...",
"script": "...",
"script_type":
"pay-to-pubkey-hash",
"sequence": 0
},
...

Now let’s try to do an RBF with doublespend.

Construct transaction
Sign transaction
Broadcast transaction
Unconfirmed transaction!
Constructing RBF transaction
Sign transaction
Broadcast transaction
Unconfirmed transactions! Smells like doublespend
Confirmed RBF transaction

A few words about security and doublespends

  • Not all nodes will agree to relay the new tx version, referring to mempool-conflict
  • Some nodes will accept this transaction
  • Websites like blockchain.info will basically scream that this is a DOUBLE SPEND
  • Not all pools will mine this new transaction, as it is a doublespend. Some pools will mine it, but it might take more time (comparing to when all pools mine your transaction)
  • If new transaction is finally included in block — this is absolutely legit and does not contradict to consensus rules. If someone got scammed this way — there’s no place he can complain about it.

References:

Bonus!

--

--

--

http://igorkorsakov.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Dead-Reckoning and Bitcoin’s Inflation Control Mechanism: Re-visiting Satoshi’s Choice

EDC listed!

Bitcoin Is Gravity

Payment Industry in 2020: What Should Be Changed To Meet New Needs — Exscudo Blog

Interview with NOOFT | Transcript

Utility Tokens & The Universal Protocol Token

SamuraiZ and the Metaverse ?

PERI FINANCE X AMAloversclub AMA Recap

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Igor Korsakov

Igor Korsakov

http://igorkorsakov.com

More from Medium

Canza Finance: Stable Coins 1.0

Calls from All the Strangest Places

Which tokens are worth buying? or why you should not lose sight of it.

About Altcoins Hub