mirror of
https://github.com/monero-project/monero.git
synced 2025-12-14 21:25:23 -05:00
wallet::default_mixin exposed to public interface as
Wallet::setDefaultMixin, Wallet::defaultMixin; wallet::create_transaction_2 used in Wallet::createTransaction
This commit is contained in:
parent
c554055ce4
commit
3ac20a46b3
4 changed files with 24 additions and 1 deletions
|
|
@ -400,7 +400,7 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, uint64
|
|||
|
||||
|
||||
try {
|
||||
transaction->m_pending_tx = m_wallet->create_transactions(dsts, fake_outs_count, 0 /* unlock_time */,
|
||||
transaction->m_pending_tx = m_wallet->create_transactions_2(dsts, fake_outs_count, 0 /* unlock_time */,
|
||||
0 /* unused fee arg*/, extra, m_trustedDaemon);
|
||||
|
||||
} catch (const tools::error::daemon_busy&) {
|
||||
|
|
@ -486,6 +486,15 @@ void WalletImpl::setListener(WalletListener *l)
|
|||
m_wallet2Callback->setListener(l);
|
||||
}
|
||||
|
||||
uint32_t WalletImpl::defaultMixin() const
|
||||
{
|
||||
return m_wallet->default_mixin();
|
||||
}
|
||||
|
||||
void WalletImpl::setDefaultMixin(uint32_t arg)
|
||||
{
|
||||
m_wallet->default_mixin(arg);
|
||||
}
|
||||
|
||||
|
||||
bool WalletImpl::connectToDaemon()
|
||||
|
|
|
|||
|
|
@ -74,6 +74,8 @@ public:
|
|||
virtual void disposeTransaction(PendingTransaction * t);
|
||||
virtual TransactionHistory * history() const;
|
||||
virtual void setListener(WalletListener * l);
|
||||
virtual uint32_t defaultMixin() const;
|
||||
virtual void setDefaultMixin(uint32_t arg);
|
||||
|
||||
private:
|
||||
void clearStatus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue