Skip to content

Commit

Permalink
Add: More transaction consensus rules and tests for it
Browse files Browse the repository at this point in the history
Signed-off-by: jaoleal <[email protected]>
  • Loading branch information
jaoleal committed Jul 2, 2024
1 parent e200707 commit 43dec4a
Show file tree
Hide file tree
Showing 6 changed files with 330 additions and 22 deletions.
9 changes: 8 additions & 1 deletion crates/floresta-chain/src/pruned_utreexo/chain_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,14 @@ impl<PersistedState: ChainStore> ChainState<PersistedState> {
let flags = self.get_validation_flags(height);
#[cfg(not(feature = "bitcoinconsensus"))]
let flags = 0;
Consensus::verify_block_transactions(inputs, &block.txdata, subsidy, verify_script, flags)?;
Consensus::verify_block_transactions(
height,
inputs,
&block.txdata,
subsidy,
verify_script,
flags,
)?;
Ok(())
}
}
Expand Down
Loading

0 comments on commit 43dec4a

Please sign in to comment.