From 8891751ce34d6d2ec2e44968fe1956978912a055 Mon Sep 17 00:00:00 2001 From: BlackcoinDev Date: Sat, 21 Sep 2024 17:44:11 +0200 Subject: [PATCH] rpc: adapt `optimizeutxoset` for Blackcoin --- src/wallet/rpc/spend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wallet/rpc/spend.cpp b/src/wallet/rpc/spend.cpp index 7bf6c433c4..f701c717d9 100644 --- a/src/wallet/rpc/spend.cpp +++ b/src/wallet/rpc/spend.cpp @@ -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."}, }, @@ -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 {