Disable work generation for change_seed with more than 4 accounts (#766)

This commit is contained in:
SergiySW 2018-03-30 22:16:03 +03:00 committed by Lee Bousfield
commit 17d028716b

View file

@ -1316,7 +1316,8 @@ rai::public_key rai::wallet::change_seed (MDB_txn * transaction_a, rai::raw_key
}
for (uint32_t i (0); i < count; ++i)
{
account = deterministic_insert (transaction_a);
// Generate work for first 4 accounts only to prevent weak CPU nodes stuck
account = deterministic_insert (transaction_a, i < 4);
}
return account;