Browse Source

Fixed keva entry in the result of gettransaction.

cn_mining
Jianping Wu 5 years ago
parent
commit
ed0a03b941
  1. 12
      src/wallet/wallet.cpp

12
src/wallet/wallet.cpp

@ -1562,12 +1562,12 @@ void CWalletTx::GetAmounts(std::list<COutputEntry>& listReceived,
COutputEntry output = {address, "", txout.nValue, (int)i}; COutputEntry output = {address, "", txout.nValue, (int)i};
// If we have a keva script, set the "keva" parameter. // If we have a keva script, set the "keva" parameter.
if (kevaOp.isKevaOp()) if (kevaOp.isKevaOp()) {
{ if (kevaOp.isAnyUpdate()) {
if (kevaOp.isAnyUpdate()) output.kevaOp = "update: " + EncodeBase58Check(kevaOp.getOpNamespace());
output.kevaOp = "update: " + ValtypeToString(kevaOp.getOpNamespace()); } else {
else output.kevaOp = "new: " + EncodeBase58Check(kevaOp.getOpNamespace());
output.kevaOp = "new: " + ValtypeToString(kevaOp.getOpNamespace()); }
output.amount = 0; output.amount = 0;
} }

Loading…
Cancel
Save