add support for existing vins for fundrawtransaction

This commit is contained in:
Jonas Schnelli 2014-12-20 21:49:31 +01:00 committed by Matt Corallo
parent 018828d666
commit cd42202ac3
4 changed files with 341 additions and 47 deletions

View file

@ -793,9 +793,6 @@ Value fundrawtransaction(const Array& params, bool fHelp)
if (!DecodeHexTx(tx, params[0].get_str()))
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
if (tx.vin.size() > 0)
throw JSONRPCError(RPC_INVALID_PARAMETER, "fundrawtransaction only supports transactions with zero exiting vins");
CMutableTransaction txNew;
CAmount nFeeRet;
string strFailReason;