bitcoin/bitcoin — pull request #3681 by laanwj (2014-02-16 17:09:19+00:00)
Title: Add RPC `reissuetransaction`

Add a new wallet RPC call `reissuetransaction`. Implements #3677.

The is make it possible to re-issue transactions that got stuck because they built on unconfirmed change transactions that were malleated.

- For conflicted transactions:
- Iterate over inputs, find variants of parent transactions that made
it into the block chain, create a new transaction with updated prevouts
- Re-sign transaction
- Commit new transaction to wallet and broadcast it to network
- For normal unconfirmed transactions:
- Rebroadcast transaction to network
- For confirmed transaction:
- Do nothing