Permissionless-Software-Foundation / psf-slp-indexer

Indexer for validating SLP transactions. Uses LevelDB.
GNU General Public License v2.0
11 stars 6 forks source link

fix(send): Fixing partial UTXO inflation bug #41

Closed christroutner closed 2 years ago

christroutner commented 2 years ago

This PR fixes a slight inflation bug. When the outputs exceed the inputs in an SLP token transaction, the entire transaction is considered invalid and the tokens are burned, as per the SLP specification. This rule was being followed in terms of calculating address balances. But the burned UTXO was not being deleted, so some wallets could have included the burned tokens in their calculations. This PR deletes the burned UTXO, in addition to the existing behavior which deducted burned tokens from the token balance.

christroutner commented 2 years ago

:tada: This PR is included in version 1.13.7 :tada:

Your semantic-release bot :package::rocket: