mirror of
https://github.com/monero-project/monero.git
synced 2025-08-09 08:22:19 -04:00
Merge pull request #3343
3d452367
allow using ring size instead of mixin for rpc transfer (cryptochangements34)
This commit is contained in:
commit
baf640887d
2 changed files with 44 additions and 4 deletions
|
@ -786,7 +786,15 @@ namespace tools
|
|||
|
||||
try
|
||||
{
|
||||
uint64_t mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
uint64_t mixin;
|
||||
if(req.ring_size != 0)
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.ring_size - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
}
|
||||
uint32_t priority = m_wallet->adjust_priority(req.priority);
|
||||
std::vector<wallet2::pending_tx> ptx_vector = m_wallet->create_transactions_2(dsts, mixin, req.unlock_time, priority, extra, req.account_index, req.subaddr_indices, m_trusted_daemon);
|
||||
|
||||
|
@ -838,7 +846,15 @@ namespace tools
|
|||
|
||||
try
|
||||
{
|
||||
uint64_t mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
uint64_t mixin;
|
||||
if(req.ring_size != 0)
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.ring_size - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
}
|
||||
uint32_t priority = m_wallet->adjust_priority(req.priority);
|
||||
LOG_PRINT_L2("on_transfer_split calling create_transactions_2");
|
||||
std::vector<wallet2::pending_tx> ptx_vector = m_wallet->create_transactions_2(dsts, mixin, req.unlock_time, priority, extra, req.account_index, req.subaddr_indices, m_trusted_daemon);
|
||||
|
@ -905,7 +921,15 @@ namespace tools
|
|||
|
||||
try
|
||||
{
|
||||
uint64_t mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
uint64_t mixin;
|
||||
if(req.ring_size != 0)
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.ring_size - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
}
|
||||
uint32_t priority = m_wallet->adjust_priority(req.priority);
|
||||
std::vector<wallet2::pending_tx> ptx_vector = m_wallet->create_transactions_all(req.below_amount, dsts[0].addr, dsts[0].is_subaddress, mixin, req.unlock_time, priority, extra, req.account_index, req.subaddr_indices, m_trusted_daemon);
|
||||
|
||||
|
@ -953,7 +977,15 @@ namespace tools
|
|||
|
||||
try
|
||||
{
|
||||
uint64_t mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
uint64_t mixin;
|
||||
if(req.ring_size != 0)
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.ring_size - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
mixin = m_wallet->adjust_mixin(req.mixin);
|
||||
}
|
||||
uint32_t priority = m_wallet->adjust_priority(req.priority);
|
||||
std::vector<wallet2::pending_tx> ptx_vector = m_wallet->create_transactions_single(ki, dsts[0].addr, dsts[0].is_subaddress, mixin, req.unlock_time, priority, extra, m_trusted_daemon);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue