Skip to content

Commit

Permalink
Merge pull request #2441 from jamescowens/fix_listtransactions_type_f…
Browse files Browse the repository at this point in the history
…ield

rpc: Change type field in ListTransactions to lower case
  • Loading branch information
jamescowens committed Feb 28, 2022
2 parents 131b947 + bd7dd00 commit 13569eb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1429,14 +1429,14 @@ UniValue listreceivedbyaccount(const UniValue& params, bool fHelp)

switch (gentype)
{
case MinedType::POR : entry.pushKV("Type", "POR"); break;
case MinedType::POS : entry.pushKV("Type", "POS"); break;
case MinedType::ORPHANED : entry.pushKV("Type", "ORPHANED"); break;
case MinedType::POS_SIDE_STAKE_RCV : entry.pushKV("Type", "POS SIDE STAKE RECEIVED"); break;
case MinedType::POR_SIDE_STAKE_RCV : entry.pushKV("Type", "POR SIDE STAKE RECEIVED"); break;
case MinedType::POS_SIDE_STAKE_SEND : entry.pushKV("Type", "POS SIDE STAKE SENT"); break;
case MinedType::POR_SIDE_STAKE_SEND : entry.pushKV("Type", "POR SIDE STAKE SENT"); break;
default : entry.pushKV("Type", "UNKNOWN"); break;
case MinedType::POR : entry.pushKV("type", "POR"); break;
case MinedType::POS : entry.pushKV("type", "POS"); break;
case MinedType::ORPHANED : entry.pushKV("type", "ORPHANED"); break;
case MinedType::POS_SIDE_STAKE_RCV : entry.pushKV("type", "POS SIDE STAKE RECEIVED"); break;
case MinedType::POR_SIDE_STAKE_RCV : entry.pushKV("type", "POR SIDE STAKE RECEIVED"); break;
case MinedType::POS_SIDE_STAKE_SEND : entry.pushKV("type", "POS SIDE STAKE SENT"); break;
case MinedType::POR_SIDE_STAKE_SEND : entry.pushKV("type", "POR SIDE STAKE SENT"); break;
default : entry.pushKV("type", "UNKNOWN"); break;
}
}
else
Expand Down

0 comments on commit 13569eb

Please sign in to comment.