Skip to content

Commit

Permalink
test: remove no longer needed (ASCII art) comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Aug 31, 2021
1 parent 14398b3 commit d861040
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/functional/rpc_rawtransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def items(self):
return self.x


# Create one-input, one-output, no-fee transaction:
class RawTransactionsTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
Expand Down Expand Up @@ -217,10 +216,6 @@ def run_test(self):
}
])

#########################################
# sendrawtransaction with missing input #
#########################################

self.log.info("Test sendrawtransaction with missing input")
inputs = [{'txid' : TXID, 'vout' : 1}] # won't exist
outputs = { self.nodes[0].getnewaddress() : 4.998 }
Expand All @@ -230,10 +225,6 @@ def run_test(self):
# This will raise an exception since there are missing inputs
assert_raises_rpc_error(-25, "bad-txns-inputs-missingorspent", self.nodes[2].sendrawtransaction, rawtx['hex'])

#####################################
# getrawtransaction with block hash #
#####################################

# Make a tx by sending, then generate 2 blocks; block1 has the tx in it
tx = self.nodes[2].sendtoaddress(self.nodes[1].getnewaddress(), 1)
block1, block2 = self.nodes[2].generate(2)
Expand Down Expand Up @@ -277,9 +268,6 @@ def run_test(self):
self.log.info("Test raw multisig transactions (legacy)")
# The traditional multisig workflow does not work with descriptor wallets so these are legacy only.
# The multisig workflow with descriptor wallets uses PSBTs and is tested elsewhere, no need to do them here.
#########################
# RAW TX MULTISIG TESTS #
#########################
# 2of2 test
addr1 = self.nodes[2].getnewaddress()
addr2 = self.nodes[2].getnewaddress()
Expand Down Expand Up @@ -452,10 +440,6 @@ def run_test(self):
# 8. invalid parameters - supply txid and empty dict
assert_raises_rpc_error(-1, "not a boolean", self.nodes[n].getrawtransaction, txId, {})

####################################
# TRANSACTION VERSION NUMBER TESTS #
####################################

self.log.info("Test transaction version numbers")

# Test the minimum transaction version number that fits in a signed 32-bit integer.
Expand Down

0 comments on commit d861040

Please sign in to comment.