mirror of
https://github.com/monero-project/monero.git
synced 2025-10-11 10:58:31 -04:00
Merge pull request #2254
e31aac80
walletAPI: add getRefreshFromBlockHeight() (Jaquee)48c0cb1b
wallet api: pause refresh while commiting tx (Jaquee)f233c01c
CMakeLists.txt - ios/xcode fix (Jaquee)
This commit is contained in:
commit
3db039828e
4 changed files with 12 additions and 0 deletions
|
@ -102,6 +102,7 @@ bool PendingTransactionImpl::commit(const std::string &filename, bool overwrite)
|
|||
}
|
||||
// Commit tx
|
||||
else {
|
||||
m_wallet.pauseRefresh();
|
||||
while (!m_pending_tx.empty()) {
|
||||
auto & ptx = m_pending_tx.back();
|
||||
m_wallet.m_wallet->commit_tx(ptx);
|
||||
|
@ -133,6 +134,7 @@ bool PendingTransactionImpl::commit(const std::string &filename, bool overwrite)
|
|||
m_status = Status_Error;
|
||||
}
|
||||
|
||||
m_wallet.startRefresh();
|
||||
return m_status == Status_Ok;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@ public:
|
|||
void setAutoRefreshInterval(int millis);
|
||||
int autoRefreshInterval() const;
|
||||
void setRefreshFromBlockHeight(uint64_t refresh_from_block_height);
|
||||
uint64_t getRefreshFromBlockHeight() const { return m_wallet->get_refresh_from_block_height(); };
|
||||
void setRecoveringFromSeed(bool recoveringFromSeed);
|
||||
bool watchOnly() const;
|
||||
bool rescanSpent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue