Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction_util.h
Show All 33 Lines | void SignTransactionResultToJSON(CMutableTransaction &mtx, bool complete, | ||||
std::map<int, std::string> &input_errors, | std::map<int, std::string> &input_errors, | ||||
UniValue &result); | UniValue &result); | ||||
/** | /** | ||||
* Parse a prevtxs UniValue array and get the map of coins from it | * Parse a prevtxs UniValue array and get the map of coins from it | ||||
* | * | ||||
* @param prevTxs Array of previous txns outputs that tx depends on but | * @param prevTxs Array of previous txns outputs that tx depends on but | ||||
* may not yet be in the block chain | * may not yet be in the block chain | ||||
* @param keystore A pointer to the temprorary keystore if there is one | * @param keystore A pointer to the temporary keystore if there is one | ||||
* @param coins Map of unspent outputs - coins in mempool and current | * @param coins Map of unspent outputs - coins in mempool and current | ||||
* chain UTXO set, may be extended by previous txns outputs after call | * chain UTXO set, may be extended by previous txns outputs after call | ||||
*/ | */ | ||||
void ParsePrevouts(const UniValue &prevTxsUnival, | void ParsePrevouts(const UniValue &prevTxsUnival, | ||||
FillableSigningProvider *keystore, | FillableSigningProvider *keystore, | ||||
std::map<COutPoint, Coin> &coins); | std::map<COutPoint, Coin> &coins); | ||||
/** Create a transaction from univalue parameters */ | /** Create a transaction from univalue parameters */ | ||||
CMutableTransaction ConstructTransaction(const CChainParams ¶ms, | CMutableTransaction ConstructTransaction(const CChainParams ¶ms, | ||||
const UniValue &inputs_in, | const UniValue &inputs_in, | ||||
const UniValue &outputs_in, | const UniValue &outputs_in, | ||||
const UniValue &locktime); | const UniValue &locktime); | ||||
#endif // BITCOIN_RPC_RAWTRANSACTION_UTIL_H | #endif // BITCOIN_RPC_RAWTRANSACTION_UTIL_H |