Auto merge of #1980 - bitcartel:fix_z_sendmany_logging_bug_txid, r=ebfull

Fix bug where z_sendmany logged incorrect txid fragment when sending from taddr

Closes #1987.
This commit is contained in:
zkbot 2017-01-18 05:10:18 +00:00
commit f37f0805cc
1 changed files with 6 additions and 0 deletions

View File

@ -799,6 +799,12 @@ void AsyncRPCOperation_sendmany::sign_send_raw_transaction(Object obj)
o.push_back(Pair("hex", signedtxn));
set_result(Value(o));
}
// Keep the signed transaction so we can hash to the same txid
CDataStream stream(ParseHex(signedtxn), SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
stream >> tx;
tx_ = tx;
}