Browse Source
on rare occasions, rand() was returning duped values, causing duplicate transactions. BuildMerkleTree happily used these, but CPartialMerkleTree caught them and returned a null merkle root. Rather than taking changes with rand(), use the loop counter to guarantee unique values. At sipa's request, also remove the remaining uses of rand().pull/145/head
Cory Fields
10 years ago
1 changed files with 6 additions and 4 deletions
Loading…
Reference in new issue