|
|
@ -77,7 +77,8 @@ void EnsureWalletIsUnlocked() |
|
|
|
void WalletTxToJSON(const CWalletTx& wtx, UniValue& entry) |
|
|
|
{ |
|
|
|
int confirms = wtx.GetDepthInMainChain(); |
|
|
|
entry.push_back(Pair("confirmations", confirms)); |
|
|
|
entry.push_back(Pair("rawconfirmations", confirms)); |
|
|
|
entry.push_back(Pair("confirmations", komodo_dpowconfs((int32_t)mapBlockIndex[wtx.hashBlock]->nHeight,confirms))); |
|
|
|
if (wtx.IsCoinBase()) |
|
|
|
entry.push_back(Pair("generated", true)); |
|
|
|
if (confirms > 0) |
|
|
|