rpc: include prevhash and prevout information for spending deltas
This commit is contained in:
parent
9994a074e5
commit
047166bb42
|
@ -592,6 +592,10 @@ UniValue getaddressmempool(const UniValue& params, bool fHelp)
|
||||||
delta.push_back(Pair("index", (int)it->first.index));
|
delta.push_back(Pair("index", (int)it->first.index));
|
||||||
delta.push_back(Pair("satoshis", it->second.amount));
|
delta.push_back(Pair("satoshis", it->second.amount));
|
||||||
delta.push_back(Pair("timestamp", it->second.time));
|
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);
|
result.push_back(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue