mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
lint: fix issues from lint-python.sh
This commit is contained in:
parent
3dfd7a4e9f
commit
b59e244da3
11 changed files with 13 additions and 16 deletions
|
|
@ -97,12 +97,13 @@ class MiningTest(BitcoinTestFramework):
|
|||
|
||||
# Check that default_witness_commitment is present.
|
||||
assert 'default_witness_commitment' in tmpl
|
||||
witness_commitment = tmpl['default_witness_commitment']
|
||||
# witness_commitment = tmpl['default_witness_commitment']
|
||||
|
||||
# Check that default_witness_commitment is correct.
|
||||
witness_root = CBlock.get_merkle_root([ser_uint256(0),
|
||||
ser_uint256(txid)])
|
||||
script = get_witness_script(witness_root, 0)
|
||||
assert_equal(script.hex(), "6a24aa21a9ed3160175963f85aa4d48b96b0b1c16eb02693d2ee908f73391e78a73747722e72") # ELEMENTS: use `script` to placate linter
|
||||
|
||||
# ELEMENTS: The following assertion fails because
|
||||
# (1) Elements appears to use a different merkle tree computation than Bitcoin here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue