bitcoin/bitcoin — pull request #3651 by laanwj (2014-02-11 15:21:37+00:00)
Title: Add option to avoid spending unconfirmed change

Adds the option `-spendzeroconfchange=0` to make the wallet avoid spending zero conf change outputs.

Rough workaround to the problems with '-4. Error: The transaction was rejected!' and other problems with chains of unconfirmed transactions and malleability.

The drawback of this is that sending will run out of inputs sooner, so if you have a lot of sends you'll need to queue up sends and use sendmany.