decred / dcrpool

decred mining pool
ISC License
29 stars 27 forks source link

pool: Improve payment UUID with random value. #392

Closed jholdstock closed 11 months ago

jholdstock commented 12 months ago

The UUID used for the payment ID was not created with any randomness to it, leading to occasional test failures due to duplicated values. Appending a random value to the UUID helps to ensure uniqueness.

The commit also updates the database upgrade code to ensure the old payment ID format is used when performing the old version upgrade.

jholdstock commented 11 months ago

Rebased this on #391 which means all of the changes to boltupgrades.go and boltupgrades_test.go are now gone. Everything else remains the same.