Coinbase utxos can only be spent when sending to a single zaddr.

Change from the transaction will be sent to the same zaddr.
This commit is contained in:
Simon
2016-09-01 19:58:42 -07:00
parent 008fccfa48
commit 3fd5a615ac
2 changed files with 38 additions and 9 deletions

View File

@@ -24,8 +24,8 @@ using namespace json_spirit;
// A recipient is a tuple of address, amount, memo (optional if zaddr)
typedef std::tuple<std::string, CAmount, std::string> SendManyRecipient;
// Input UTXO is a tuple of txid, vout, amount
typedef std::tuple<uint256, int, CAmount> SendManyInputUTXO;
// Input UTXO is a tuple (quadruple) of txid, vout, amount, coinbase)
typedef std::tuple<uint256, int, CAmount, bool> SendManyInputUTXO;
// Input NPT is a pair of the plaintext note and amount
typedef std::pair<NotePlaintext, CAmount> SendManyInputNPT;
@@ -80,7 +80,7 @@ private:
void add_taddr_change_output_to_tx(CAmount amount);
void add_taddr_outputs_to_tx();
bool find_unspent_notes();
bool find_utxos();
bool find_utxos(bool fAcceptCoinbase);
boost::array<unsigned char, ZC_MEMO_SIZE> get_memo_from_hex_string(std::string s);
bool main_impl();
Object perform_joinsplit( AsyncJoinSplitInfo &);