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:
moneromooo-monero 2015-11-22 19:03:10 +00:00
parent d2c031332e
commit 9b945f5211
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 62 additions and 6 deletions

View file

@ -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)
{