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 Simon
parent 9994a074e5
commit 047166bb42
1 changed files with 4 additions and 0 deletions

View File

@ -592,6 +592,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);
}