hexresearch / hschain

Other
4 stars 0 forks source link

Fix bug in coin's state hadnling which caused crash on double spend #676

Closed Shimuuar closed 4 years ago

Shimuuar commented 4 years ago

Short: query condition indbLookupUTXO was wrong so double spend transaction was provisionally accepted and consequent write crashed due to constraint violations. Also PR contains:

  1. Tests for coin state transitions
  2. Orphans for working with database using coin types