mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
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:
parent
ca7b38d5ea
commit
96bc22b40c
1 changed files with 9 additions and 1 deletions
|
@ -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\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue