rpc: include prevhash and prevout information for spending deltas

This commit is contained in:
Braydon Fuller 2016-04-21 15:07:01 -04:00 committed by Braydon Fuller
parent 04da9306c6
commit 5c3cf5f631

View File

@ -478,6 +478,10 @@ UniValue getaddressmempool(const UniValue& params, bool fHelp)
delta.push_back(Pair("index", (int)it->first.index));
delta.push_back(Pair("satoshis", it->second.amount));
delta.push_back(Pair("timestamp", it->second.time));
if (it->second.amount < 0) {
delta.push_back(Pair("prevtxid", it->second.prevhash.GetHex()));
delta.push_back(Pair("prevout", (int)it->second.prevout));
}
result.push_back(delta);
}