rpc: include prevhash and prevout information for spending deltas
This commit is contained in:
parent
04da9306c6
commit
5c3cf5f631
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user