Disable work generation for change_seed with more than 4 accounts (#766)
This commit is contained in:
parent
fd10a0b1ed
commit
17d028716b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue