mirror of
https://github.com/monero-project/monero.git
synced 2025-05-29 07:51:14 -04:00
wallet: make the refresh optimizations selectable via command line
Take the opportunity to add a no-coinbase case too, for even faster sync when an address is known to never have mined to.
This commit is contained in:
parent
d2c031332e
commit
9b945f5211
4 changed files with 62 additions and 6 deletions
|
@ -204,7 +204,11 @@ void wallet2::process_new_transaction(const cryptonote::transaction& tx, uint64_
|
|||
tx_pub_key = pub_key_field.pub_key;
|
||||
bool r = true;
|
||||
int threads;
|
||||
if (miner_tx)
|
||||
if (miner_tx && m_refresh_type == RefreshNoCoinbase)
|
||||
{
|
||||
// assume coinbase isn't for us
|
||||
}
|
||||
else if (miner_tx && m_refresh_type == RefreshOptimizeCoinbase)
|
||||
{
|
||||
for (size_t i = 0; i < tx.vout.size(); ++i)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue