Add Tx Malleability Warning To Spending Unconfirmed Tx Example

Suggested and written by @saivann, with a revised version being
commited here. Thanks!
This commit is contained in:
David A. Harding 2014-06-08 18:53:37 -04:00
parent ca7b38d5ea
commit 96bc22b40c
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7

View file

@ -623,13 +623,21 @@ the block chain or memory pool.
{% autocrossref %}
We will now spend the transaction created in the Complex Raw Transaction
subsection above without sending it to the local node first. This is the
same basic process used by wallet programs for offline
signing---which generally means signing a transaction without access
to the current UTXO set.
Offline signing is safe. However, in this example we will also be
spending an output which is not part of the block chain because the
transaction containing it has never been broadcast. That can be unsafe:
**Warning:** transactions which spend outputs from unconfirmed
transactions are vulnerable to transaction malleability. Be sure to read
about transaction malleability and adopt good practices before spending
unconfirmed transactions on mainnet.
{% highlight bash %}
> OLD_SIGNED_RAW_TX=0100000002f327e86da3e66bd20e1129b1fb36d07056\
f0b9a117199e759396526b8f3a20780000000049483045022100fce442\