Skip to content

Commit

Permalink
Add td single key check config into defid (#2714)
Browse files Browse the repository at this point in the history
  • Loading branch information
sieniven authored Nov 23, 2023
1 parent 5a05dd2 commit 45f7e3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfi/rpc_accounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ UniValue transferdomain(const JSONRPCRequest &request) {
// dst.data.assign(dstObj["data"].getValStr().begin(), dstObj["data"].getValStr().end());

// Single key check
bool singlekeycheck = true;
auto singlekeycheck = gArgs.GetBoolArg("-tdsinglekeycheck", true);
if (!singlekeycheckObj.isNull()) {
singlekeycheck = singlekeycheckObj.getBool();
}
Expand Down
1 change: 1 addition & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ void SetupServerArgs()
gArgs.AddArg("-printpriority", strprintf("Log transaction fee per kB when mining blocks (default: %u)", DEFAULT_PRINTPRIORITY), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-printtoconsole", "Send trace/debug info to console (default: 1 when no -daemon. To disable logging to file, set -nodebuglogfile)", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-shrinkdebugfile", "Shrink debug.log file on client startup (default: 1 when no -debug)", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-tdsinglekeycheck", "Set the single key check flag for transferdomain RPC. If enabled, transfers between domain are only allowed if the addresses specified corresponds to the same key (default: true)", ArgsManager::ALLOW_ANY, OptionsCategory::RPC);
gArgs.AddArg("-uacomment=<cmt>", "Append comment to the user agent string", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);

SetupChainParamsBaseOptions();
Expand Down

0 comments on commit 45f7e3a

Please sign in to comment.