All transactions should have a set of consensus rules by which they can be validated. Currently, there is no validation on the transaction level, as to what is considered to be a valid transaction.
The criteria for a valid transaction should be:
Total value (:amount) of outputs is not larger that total value of inputs (except for the coinbase, which has no inputs and only one output)
All inputs in the transaction are currently in the UTXO pool (meaning they haven't been spent elsewhere yet)
All inputs have a valid signature that is associated with the address on the input
This issue likely can't be solved until #9 is implemented
All transactions should have a set of consensus rules by which they can be validated. Currently, there is no validation on the transaction level, as to what is considered to be a valid transaction.
The criteria for a valid transaction should be:
:amount
) of outputs is not larger that total value of inputs (except for the coinbase, which has no inputs and only one output)This issue likely can't be solved until #9 is implemented