Document default of -consolidation and add comment about number of zouts
This commit is contained in:
@@ -448,7 +448,7 @@ std::string HelpMessage(HelpMessageMode mode)
|
|||||||
strUsage += HelpMessageGroup(_("Wallet options:"));
|
strUsage += HelpMessageGroup(_("Wallet options:"));
|
||||||
strUsage += HelpMessageOpt("-disablewallet", _("Do not load the wallet and disable wallet RPC calls"));
|
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("-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("-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("-consolidationtxfee", strprintf(_("Fee amount in Puposhis used send consolidation transactions. (default %i)"), DEFAULT_CONSOLIDATION_FEE));
|
||||||
strUsage += HelpMessageOpt("-deletetx", _("Enable Old Transaction Deletion"));
|
strUsage += HelpMessageOpt("-deletetx", _("Enable Old Transaction Deletion"));
|
||||||
|
|||||||
@@ -167,6 +167,10 @@ bool AsyncRPCOperation_saplingconsolidation::main_impl() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
builder.SetFee(fConsolidationTxFee);
|
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);
|
builder.AddSaplingOutput(extsk.expsk.ovk, addr, amountToSend - fConsolidationTxFee);
|
||||||
//CTransaction tx = builder.Build();
|
//CTransaction tx = builder.Build();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user