You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem concerns duplicate private keys. 2+ totally unique seeds can map to the same private key, for example 0 and 00 both become 32 0's using the front_pad and back_pad methods. If they're caught by the bloom filter but not in the database, they will eventually both be added to a bulk insert transaction; the transaction will fail because 0 and 00 have the same private key.
This can be fixed by removing duplicates that would be added to this specific transaction. The array of concern is the second update array that is filled with records that were caught by the bloom filter but not found in the database.
Note that since GEN-5 sorts the input seed set, all duplicates will be next to each other in the update array, making the removal of duplicate records really fast and simple.
Reopening this issue because it's not entirely solved. While sorting seeds helps get duplicate private keys closer together, it doesn't ensure they will be adjacent to each other. For example, the seeds destiny10 and destiny100 will be next to each other, but the private keys will appear like so in the array:
Activity
cacheburner commentedon Jun 1, 2019
Note that since GEN-5 sorts the input seed set, all duplicates will be next to each other in the
updatearray, making the removal of duplicate records really fast and simple.cacheburner commentedon Jun 2, 2019
Merged.
cacheburner commentedon Jun 2, 2019
Reopening this issue because it's not entirely solved. While sorting seeds helps get duplicate private keys closer together, it doesn't ensure they will be adjacent to each other. For example, the seeds
destiny10anddestiny100will be next to each other, but the private keys will appear like so in the array:000..destiny10destiny10..000000..destiny100destiny10..000<- DUPLICATETherefore, we have to sort the private keys in the
candidatesarraycacheburner commentedon Jul 18, 2019
Getting this error again on Manjaro Linux using 1000 seeds. Seems to work fine on Mac. Will look into this next week.