Skip to content

Commit 5cb3ace

Browse files
authored
Merge pull request ElementsProject#1310 from GoodDaisy/master
Fix typos
2 parents 077ae2d + 662e118 commit 5cb3ace

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/bitcoin_functional/functional/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ don't have test cases for.
2929
- Avoid wildcard imports
3030
- Use a module-level docstring to describe what the test is testing, and how it
3131
is testing it.
32-
- When subclassing the BitcoinTestFramwork, place overrides for the
32+
- When subclassing the BitcoinTestFramework, place overrides for the
3333
`set_test_params()`, `add_options()` and `setup_xxxx()` methods at the top of
3434
the subclass, then locally-defined helper methods, then the `run_test()` method.
3535
- Use `'{}'.format(x)` for string formatting, not `'%s' % x`.

test/functional/feature_blocksign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def mine_block(self, make_transactions):
154154
result = miner.combineblocksigs(block, sigs, self.witnessScript)
155155
sigs = sigs + self.nodes[i].signblock(block, self.witnessScript)
156156
assert_equal(result["complete"], i >= self.required_signers)
157-
# submitting should have no effect pre-threshhold
157+
# submitting should have no effect pre-threshold
158158
if i < self.required_signers:
159159
miner.submitblock(result["hex"])
160160
self.check_height(blockcount)

test/functional/feature_tapscript_opcodes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def run_test(self):
290290

291291
# Test introspection opcodes
292292
# 1a. No Pegins/issuances
293-
self.log.info("Instrospection tests: outpoint flag")
293+
self.log.info("Introspection tests: outpoint flag")
294294
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x00', OP_EQUALVERIFY, OP_DROP, OP_DROP, OP_1]))
295295
# 1b. Add a pegin (Test pegin input must be 0x40)
296296
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x40', OP_EQUALVERIFY, OP_DROP, OP_DROP, OP_1]), add_pegin=True)
@@ -304,7 +304,7 @@ def run_test(self):
304304
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x00', OP_EQUALVERIFY, OP_DROP, OP_DROP, OP_1]), add_pegin = True, add_issuance=True, fail="Script failed an OP_EQUALVERIFY operation")
305305

306306
# Test opcode for inspecting prev tx
307-
self.log.info("Instrospection tests: inputs")
307+
self.log.info("Introspection tests: inputs")
308308
self.tapscript_satisfy_test(CScript([OP_0, OP_INSPECTINPUTOUTPOINT, b'\x00', OP_EQUALVERIFY, OP_TOALTSTACK, OP_EQUALVERIFY, OP_FROMALTSTACK, OP_EQUAL]), add_prevout=True)
309309

310310
# Test taproot asset with blinding.
@@ -351,12 +351,12 @@ def run_test(self):
351351
self.tapscript_satisfy_test(CScript([-1, OP_1, OP_INSPECTINPUTVALUE, OP_FALSE, OP_EQUAL]), fail="Introspection index out of bounds")
352352

353353
# Test current input
354-
self.log.info("Instrospection tests: current input index")
354+
self.log.info("Introspection tests: current input index")
355355
self.tapscript_satisfy_test(CScript([OP_PUSHCURRENTINPUTINDEX, OP_0, OP_EQUAL]))
356356
self.tapscript_satisfy_test(CScript([OP_PUSHCURRENTINPUTINDEX, OP_1, OP_EQUAL]), fail="Script evaluated without error but finished with a false/empty top stack element")
357357

358358
# Test Outputs
359-
self.log.info("Instrospection tests: outputs")
359+
self.log.info("Introspection tests: outputs")
360360
for blind in [True, False]:
361361
for out_pos in [0, 1]:
362362
self.tapscript_satisfy_test(CScript([out_pos, OP_INSPECTOUTPUTASSET, OP_TOALTSTACK, OP_EQUALVERIFY, OP_FROMALTSTACK, OP_EQUAL]), blind=blind, add_out_asset=out_pos)
@@ -368,8 +368,8 @@ def run_test(self):
368368
self.tapscript_satisfy_test(CScript([120, OP_INSPECTOUTPUTASSET, OP_FALSE, OP_EQUAL]), fail="Introspection index out of bounds")
369369
self.tapscript_satisfy_test(CScript([-1, OP_INSPECTOUTPUTVALUE, OP_FALSE, OP_EQUAL]), fail="Introspection index out of bounds")
370370

371-
# Finally, check the tx instrospection
372-
self.log.info("Instrospection tests: tx")
371+
# Finally, check the tx introspection
372+
self.log.info("Introspection tests: tx")
373373
# Test version equality
374374
self.tapscript_satisfy_test(CScript([OP_INSPECTVERSION, int(2).to_bytes(4, 'little'), OP_EQUAL]), ver = 2)
375375
self.tapscript_satisfy_test(CScript([OP_INSPECTVERSION, int(5).to_bytes(4, 'little'), OP_EQUAL]), ver = 2, fail="Script evaluated without error but finished with a false/empty top stack element")

0 commit comments

Comments
 (0)