snarkOS
snarkOS copied to clipboard
[Bug] consume or give the fee to the validator when a transaction fails
🐛 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.