Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.cpp
Show First 20 Lines • Show All 396 Lines • ▼ Show 20 Lines | public: | ||||
const std::string &label, bool is_mine, | const std::string &label, bool is_mine, | ||||
const std::string &purpose, ChangeType status) { | const std::string &purpose, ChangeType status) { | ||||
fn(address, label, is_mine, purpose, status); | fn(address, label, is_mine, purpose, status); | ||||
})); | })); | ||||
} | } | ||||
std::unique_ptr<Handler> | std::unique_ptr<Handler> | ||||
handleTransactionChanged(TransactionChangedFn fn) override { | handleTransactionChanged(TransactionChangedFn fn) override { | ||||
return MakeHandler(m_wallet.NotifyTransactionChanged.connect( | return MakeHandler(m_wallet.NotifyTransactionChanged.connect( | ||||
[fn, this](CWallet *, const TxId &txid, ChangeType status) { | [fn](CWallet *, const TxId &txid, ChangeType status) { | ||||
fn(txid, status); | fn(txid, status); | ||||
})); | })); | ||||
} | } | ||||
std::unique_ptr<Handler> | std::unique_ptr<Handler> | ||||
handleWatchOnlyChanged(WatchOnlyChangedFn fn) override { | handleWatchOnlyChanged(WatchOnlyChangedFn fn) override { | ||||
return MakeHandler(m_wallet.NotifyWatchonlyChanged.connect(fn)); | return MakeHandler(m_wallet.NotifyWatchonlyChanged.connect(fn)); | ||||
} | } | ||||
Show All 10 Lines |