Skip to content

Commit

Permalink
rpc: adapt optimizeutxoset for Blackcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackcoinDev committed Sep 21, 2024
1 parent 6a22540 commit 8891751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wallet/rpc/spend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ RPCHelpMan optimizeutxoset()
"\nOptimize the UTXO set in order to maximize the PoS yield. This is only valid for continuous minting. The accumulated coinage will be reset!" +
HELP_REQUIRING_PASSPHRASE,
{
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, "The peercoin address to recieve all the new UTXOs. If not provided, new UTOXs will be assigned to the address of the input UTXOs."},
{"amount", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "The " + CURRENCY_UNIT + " amount to set the value of new UTXOs, i.e. make new UTXOs with value of 110. If amount is not provided, hardcoded value will be used."},
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, "The blackcoin address to recieve all the new UTXOs. If not provided, new UTOXs will be assigned to the address of the input UTXOs."},
{"amount", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "The " + CURRENCY_UNIT + " amount to set the value of new UTXOs, i.e. make new UTXOs with value of 1000. If amount is not provided, hardcoded value will be used."},
{"transmit", RPCArg::Type::BOOL, RPCArg::Default{false}, "If true, transmit transaction after generating it."},
{"fromAddress", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "The blackcoin address to split coins from. If not provided, all available coins will be used."},
},
Expand All @@ -355,8 +355,8 @@ RPCHelpMan optimizeutxoset()
},
},
RPCExamples{
"\nTrigger UTXO optimization and assign all the new UTXOs to some peercoin address with user defined UTXO value\n"
+ HelpExampleCli("optimizeutxoset", EXAMPLE_ADDRESS[0] + " 110")
"\nTrigger UTXO optimization and assign all the new UTXOs to some blackcoin address with user defined UTXO value\n"
+ HelpExampleCli("optimizeutxoset", EXAMPLE_ADDRESS[0] + " 1000")
},
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{
Expand Down

0 comments on commit 8891751

Please sign in to comment.