-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added a few `?` when needed - Check if the first tx is coinbase and return FirstTxIsNotCoinbase if it is not. `verify_coinbase` was previously only called if `transaction.is_coinbase() && n == 0` and the not coinbase case was not handled. - Previous `get_out_value` returned error when output had 0 sats value, but this is valid under the consensus rules (e.g. tx 3ef405a8b0f3404e9c0c65e18776f19a3f213bd358566434d9313223be58d225 has a 0 sats output) - `consume_utxos` changed to `get_utxo_value` as the utxos are consumed by the `verify_with_flags` method, since it takes a `utxos.remove(outpoint)` closure. Previously `verify_with_flags` was throwing an error because the utxos were already consumed but we didn't use `?` and the error was "hidden".
- Loading branch information
Showing
1 changed file
with
68 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters