forked from lthn/blockchain
Merge branch 'release' into develop
This commit is contained in:
commit
07830d7988
5 changed files with 20 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ Be sure to properly clone the repository:
|
|||
|--|--|--|--|
|
||||
| gcc (Linux) | 5.4.0 | 7.2.0 | 8.3.0 |
|
||||
| llvm/clang (Linux) | UNKNOWN | 7.0.1 | 8.0.0 |
|
||||
| [MSVC](https://visualstudio.microsoft.com/downloads/) (Windows) | 2015 (14.0 update 1) | 2015 (14.0 update 3) | 2017 (15.5.7) |
|
||||
| [MSVC](https://visualstudio.microsoft.com/downloads/) (Windows) | 2015 (14.0 update 1) | 2017 (15.5.7) | 2019 |
|
||||
| [XCode](https://developer.apple.com/downloads/) (macOS) | 7.3.1 | 9.2 | 9.2 |
|
||||
| [CMake](https://cmake.org/download/) | 2.8.6 | 3.15.5 | 3.15.5 |
|
||||
| [Boost](https://www.boost.org/users/download/) | 1.56 | 1.68 | 1.68 |
|
||||
|
|
|
|||
|
|
@ -826,6 +826,11 @@ bool MainWindow::money_transfer(const view::transfer_event_info& tei)
|
|||
//don't show unconfirmed tx
|
||||
if (tei.ti.height == 0)
|
||||
return true;
|
||||
if (tei.is_wallet_in_sync_process)
|
||||
{
|
||||
//don't show notification if it long sync process(mmight cause system freeze)
|
||||
return true;
|
||||
}
|
||||
|
||||
auto amount_str = currency::print_money(tei.ti.amount);
|
||||
std::string title, msg;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
#define PROJECT_REVISION "7"
|
||||
#define PROJECT_VERSION PROJECT_MAJOR_VERSION "." PROJECT_MINOR_VERSION "." PROJECT_REVISION
|
||||
|
||||
#define PROJECT_VERSION_BUILD_NO 97
|
||||
#define PROJECT_VERSION_BUILD_NO 103
|
||||
#define PROJECT_VERSION_BUILD_NO_STR STRINGIFY_EXPAND(PROJECT_VERSION_BUILD_NO)
|
||||
#define PROJECT_VERSION_LONG PROJECT_VERSION "." PROJECT_VERSION_BUILD_NO_STR "[" BUILD_COMMIT_ID "]"
|
||||
|
|
|
|||
|
|
@ -356,6 +356,7 @@ public:
|
|||
uint64_t balance;
|
||||
uint64_t total_mined;
|
||||
uint64_t wallet_id;
|
||||
bool is_wallet_in_sync_process;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(ti)
|
||||
|
|
@ -363,6 +364,7 @@ public:
|
|||
KV_SERIALIZE(balance)
|
||||
KV_SERIALIZE(total_mined)
|
||||
KV_SERIALIZE(wallet_id)
|
||||
KV_SERIALIZE(is_wallet_in_sync_process)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,13 @@
|
|||
return API_RETURN_CODE_WALLET_WRONG_ID; \
|
||||
auto& name = it->second.w;
|
||||
|
||||
#define GET_WALLET_OPTIONS_BY_ID_VOID_RET(wallet_id, name) \
|
||||
SHARED_CRITICAL_REGION_LOCAL(m_wallets_lock); \
|
||||
auto it = m_wallets.find(wallet_id); \
|
||||
if (it == m_wallets.end()) \
|
||||
return; \
|
||||
auto& name = it->second;
|
||||
|
||||
#ifdef MOBILE_WALLET_BUILD
|
||||
#define DAEMON_IDLE_UPDATE_TIME_MS 10000
|
||||
#define TX_POOL_SCAN_INTERVAL 5
|
||||
|
|
@ -1763,12 +1770,15 @@ void wallets_manager::on_new_block(size_t wallet_id, uint64_t /*height*/, const
|
|||
}
|
||||
|
||||
void wallets_manager::on_transfer2(size_t wallet_id, const tools::wallet_public::wallet_transfer_info& wti, uint64_t balance, uint64_t unlocked_balance, uint64_t total_mined)
|
||||
{
|
||||
{
|
||||
view::transfer_event_info tei = AUTO_VAL_INIT(tei);
|
||||
tei.ti = wti;
|
||||
tei.balance = balance;
|
||||
tei.unlocked_balance = unlocked_balance;
|
||||
tei.wallet_id = wallet_id;
|
||||
|
||||
GET_WALLET_OPTIONS_BY_ID_VOID_RET(wallet_id, w);
|
||||
tei.is_wallet_in_sync_process = w.long_refresh_in_progress;
|
||||
m_pview->money_transfer(tei);
|
||||
}
|
||||
void wallets_manager::on_pos_block_found(size_t wallet_id, const currency::block& b)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue