firoorg / firo

The privacy-focused cryptocurrency
https://firo.org
MIT License
720 stars 354 forks source link

Fixed broken spark state #1307

Closed psolstice closed 1 year ago

psolstice commented 1 year ago

PR intention

There is a bug that leaves spark state inconsistent when there is a failure to connect a block with more than one spark spend due to lTag being used in the blockchain

Code changes brief

Check for all the lTags to ensure there is no conflict, only then modify the state