forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify script via bitcoinconsensus (paritytech#24)
* Minor pure refactor * Replace tx_serialize_size_no_witness() with tx.base_size() This function is already equivalently implemented in rust-bitcoin. * Replace block_serialize_size_no_witness() with block.base_size() * Use block.weight() and tx.weight() * Separate out tx_verify module * Rename header_verifier.rs to header_verify.rs * Inline verify_transaction clsoure * Verify script using bitcoinconsensus * Fix difficulty bits check * Double the stall timeout when the chain is higher than 300000
- Loading branch information
1 parent
4097995
commit 19e6a7f
Showing
8 changed files
with
295 additions
and
255 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.