snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Bug] consume or give the fee to the validator when a transaction fails

Open facundoolano opened this issue 3 years ago • 0 comments

🐛 Bug Report

To prevent attacks of using invalid transactions, the node should consume the fee even when the transaction fails. The fee should be variable to allow legitimate higher-paying transactions to win even in the presence of transaction "spam". Add unit tests to exercise this scenario.

facundoolano avatar Sep 12 '22 16:09 facundoolano