Document default of -consolidation and add comment about number of zouts

This commit is contained in:
Duke Leto
2020-02-27 18:20:14 -05:00
parent cb004f5d57
commit 9b0d986528
2 changed files with 5 additions and 1 deletions

View File

@@ -448,7 +448,7 @@ std::string HelpMessage(HelpMessageMode mode)
strUsage += HelpMessageGroup(_("Wallet options:"));
strUsage += HelpMessageOpt("-disablewallet", _("Do not load the wallet and disable wallet RPC calls"));
strUsage += HelpMessageOpt("-keypool=<n>", strprintf(_("Set key pool size to <n> (default: %u)"), 100));
strUsage += HelpMessageOpt("-consolidation", _("Enable auto Sapling note consolidation"));
strUsage += HelpMessageOpt("-consolidation", _("Enable auto Sapling note consolidation (default: false)"));
strUsage += HelpMessageOpt("-consolidatesaplingaddress=<zaddr>", _("Specify Sapling Address to Consolidate. (default: all)"));
strUsage += HelpMessageOpt("-consolidationtxfee", strprintf(_("Fee amount in Puposhis used send consolidation transactions. (default %i)"), DEFAULT_CONSOLIDATION_FEE));
strUsage += HelpMessageOpt("-deletetx", _("Enable Old Transaction Deletion"));

View File

@@ -167,6 +167,10 @@ bool AsyncRPCOperation_saplingconsolidation::main_impl() {
}
builder.SetFee(fConsolidationTxFee);
//TODO: we want at least 2 zouts and potentially Sietch
// We could split funds into 2 parts and send as 2 zouts
// or add amount=0 sietch zaddrs
builder.AddSaplingOutput(extsk.expsk.ovk, addr, amountToSend - fConsolidationTxFee);
//CTransaction tx = builder.Build();