Skip to content

Commit

Permalink
scripted-diff: tests replaced where != is used in functional tests to…
Browse files Browse the repository at this point in the history
… assert_not_equal

    -BEGIN VERIFY SCRIPT-
    git grep -l "assert .*!=" -- ':(exclude)*script.py' ./test/functional | xargs sed -i -e "/assert (.*!=.*)/ s/assert (/assert_not_equal(/g" -e "/assert (.*) !=/ s/assert /assert_not_equal(/g" -e "/assert [^(].*!=/ s/assert /assert_not_equal(/g" -e "/assert_not_equal(/ s/ !=/,/g" -e "/assert_not_equal(.*#/ s/  #/) #/g" -e "/assert_not_equal([^#]*.[^)]$/ s/$/)/g" -e "/assert_not_equal([^#]*.[(][)][)]$/ s/$/)/g" -e "/assert_not_equal([^#]*.[(][)]$/ s/$/)/g" -e "/assert_not_equal([^#]*([a-zA-Z=_]*)$/ s/$/)/g" -e "s/assert_not_equal(cblks/assert_not_equal((cblks/g" -e "/assert_not_equal((cblks/ s/)$/))/g" -e "s/assert_not_equal(amount/assert_not_equal((amount/g" -e "/assert_not_equal((amount/ s/None)$/None))/g"
    -END VERIFY SCRIPT-
  • Loading branch information
kevkevinpal committed Nov 12, 2024
1 parent aa7ae9b commit 764c54c
Show file tree
Hide file tree
Showing 39 changed files with 75 additions and 75 deletions.
2 changes: 1 addition & 1 deletion test/functional/feature_assumeutxo.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def check_dump_output(output):
assert_equal(
dump_output4['txoutset_hash'],
"8a1db0d6e958ce0d7c963bc6fc91ead596c027129bacec68acc40351037b09d7")
assert sha256sum_file(dump_output['path']) != sha256sum_file(dump_output4['path'])
assert_not_equal(sha256sum_file(dump_output['path']), sha256sum_file(dump_output4['path'])

# Use a hash instead of a height
prev_snap_hash = n0.getblockhash(prev_snap_height)
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_bind_port_discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def run_test(self):
if local['address'] == ADDR1:
found_addr1 = True
assert_equal(local['port'], BIND_PORT)
assert local['address'] != ADDR2
assert_not_equal(local['address'], ADDR2)
assert found_addr1

if __name__ == '__main__':
Expand Down
4 changes: 2 additions & 2 deletions test/functional/feature_coinstatsindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ def _test_reorg_index(self):
res2 = index_node.gettxoutsetinfo(hash_type='muhash', hash_or_height=112)
assert_equal(res["bestblock"], block)
assert_equal(res["muhash"], res2["muhash"])
assert res["muhash"] != res_invalid["muhash"]
assert_not_equal(res["muhash"], res_invalid["muhash"])

# Test that requesting reorged out block by hash is still returning correct results
res_invalid2 = index_node.gettxoutsetinfo(hash_type='muhash', hash_or_height=reorg_block)
assert_equal(res_invalid2["muhash"], res_invalid["muhash"])
assert res["muhash"] != res_invalid2["muhash"]
assert_not_equal(res["muhash"], res_invalid2["muhash"])

# Add another block, so we don't depend on reconsiderblock remembering which
# blocks were touched by invalidateblock
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_dbcrash.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def run_test(self):
self.log.info(f"Restarted nodes: {self.restart_counts}; crashes on restart: {self.crashed_on_restart}")

# If no nodes were restarted, we didn't test anything.
assert self.restart_counts != [0, 0, 0]
assert_not_equal(self.restart_counts, [0, 0, 0])

# Make sure we tested the case of crash-during-recovery.
assert self.crashed_on_restart > 0
Expand Down
4 changes: 2 additions & 2 deletions test/functional/feature_fee_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,15 @@ def test_estimate_dat_is_flushed_periodically(self):
self.nodes[0].mockscheduler(SECONDS_PER_HOUR)

fee_dat_current_content = open(fee_dat, "rb").read()
assert fee_dat_current_content != fee_dat_initial_content
assert_not_equal(fee_dat_current_content, fee_dat_initial_content)

fee_dat_initial_content = fee_dat_current_content

# Generate blocks before shutdown and verify that the fee estimates are not the same
self.generate(self.nodes[0], 5, sync_fun=self.no_op)
self.restart_node(0)
fee_dat_current_content = open(fee_dat, "rb").read()
assert fee_dat_current_content != fee_dat_initial_content
assert_not_equal(fee_dat_current_content, fee_dat_initial_content)


def test_acceptstalefeeestimates_option(self):
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_minchainwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def run_test(self):
assert_equal(len(self.nodes[2].getchaintips()), 1)
assert_equal(self.nodes[2].getchaintips()[0]['height'], 0)

assert self.nodes[1].getbestblockhash() != self.nodes[0].getbestblockhash()
assert_not_equal(self.nodes[1].getbestblockhash(), self.nodes[0].getbestblockhash())
assert_equal(self.nodes[2].getblockcount(), starting_blockcount)

self.log.info("Check that getheaders requests to node2 are ignored")
Expand Down
14 changes: 7 additions & 7 deletions test/functional/feature_taproot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1572,20 +1572,20 @@ def gen_test_vectors(self):
# Require negated taps[0]
assert taps[0].negflag
# Require one negated and one non-negated in taps 1 and 2.
assert taps[1].negflag != taps[2].negflag
assert_not_equal(taps[1].negflag, taps[2].negflag)
# Require one negated and one non-negated in taps 3 and 4.
assert taps[3].negflag != taps[4].negflag
assert_not_equal(taps[3].negflag, taps[4].negflag)
# Require one negated and one non-negated in taps 5 and 6.
assert taps[5].negflag != taps[6].negflag
assert_not_equal(taps[5].negflag, taps[6].negflag)

cblks = [{leaf: get({**DEFAULT_CONTEXT, 'tap': taps[i], 'leaf': leaf}, 'controlblock') for leaf in taps[i].leaves} for i in range(7)]
# Require one swapped and one unswapped in taps 3 and 4.
assert (cblks[3]['0'][33:65] < cblks[3]['1'][33:65]) != (cblks[4]['0'][33:65] < cblks[4]['1'][33:65])
assert_not_equal((cblks[3]['0'][33:65] < cblks[3]['1'][33:65]), (cblks[4]['0'][33:65] < cblks[4]['1'][33:65]))
# Require one swapped and one unswapped in taps 5 and 6, both at the top and child level.
assert (cblks[5]['0'][33:65] < cblks[5]['1'][65:]) != (cblks[6]['0'][33:65] < cblks[6]['1'][65:])
assert (cblks[5]['1'][33:65] < cblks[5]['2'][33:65]) != (cblks[6]['1'][33:65] < cblks[6]['2'][33:65])
assert_not_equal((cblks[5]['0'][33:65] < cblks[5]['1'][65:]), (cblks[6]['0'][33:65] < cblks[6]['1'][65:]))
assert_not_equal((cblks[5]['1'][33:65] < cblks[5]['2'][33:65]), (cblks[6]['1'][33:65] < cblks[6]['2'][33:65]))
# Require within taps 5 (and thus also 6) that one level is swapped and the other is not.
assert (cblks[5]['0'][33:65] < cblks[5]['1'][65:]) != (cblks[5]['1'][33:65] < cblks[5]['2'][33:65])
assert_not_equal((cblks[5]['0'][33:65] < cblks[5]['1'][65:]), (cblks[5]['1'][33:65] < cblks[5]['2'][33:65]))

# Compute a deterministic set of scriptPubKeys
tap_spks = []
Expand Down
2 changes: 1 addition & 1 deletion test/functional/mempool_accept_wtxid.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def run_test(self):
child_two_txid = child_two.rehash()

assert_equal(child_one_txid, child_two_txid)
assert child_one_wtxid != child_two_wtxid
assert_not_equal(child_one_wtxid, child_two_wtxid)

self.log.info("Submit child_one to the mempool")
txid_submitted = node.sendrawtransaction(child_one.serialize().hex())
Expand Down
2 changes: 1 addition & 1 deletion test/functional/mempool_truc.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def test_reorg_2child_rbf(self):
child_1_conflict = self.wallet.send_self_transfer(from_node=node, version=3, utxo_to_spend=ancestor_tx["new_utxos"][0], fee_rate=Decimal("0.01"))

# Ensure child_1 and child_1_conflict are different transactions
assert (child_1_conflict["txid"] != child_1["txid"])
assert_not_equal(child_1_conflict["txid"], child_1["txid"])
self.check_mempool([ancestor_tx["txid"], child_1_conflict["txid"], child_2["txid"]])
assert_equal(node.getmempoolentry(ancestor_tx["txid"])["descendantcount"], 3)

Expand Down
2 changes: 1 addition & 1 deletion test/functional/mining_prioritisetransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def run_test(self):
self.nodes[0].setmocktime(mock_time+10)
new_template = self.nodes[0].getblocktemplate({'rules': ['segwit']})

assert template != new_template
assert_not_equal(template, new_template)

if __name__ == '__main__':
PrioritiseTransactionTest(__file__).main()
6 changes: 3 additions & 3 deletions test/functional/p2p_blockfilters.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ def run_test(self):
assert_equal(self.nodes[1].getblockcount(), 2000)

# Check that nodes have signalled NODE_COMPACT_FILTERS correctly.
assert peer_0.nServices & NODE_COMPACT_FILTERS != 0
assert_not_equal(peer_0.nServices & NODE_COMPACT_FILTERS, 0)
assert peer_1.nServices & NODE_COMPACT_FILTERS == 0

# Check that the localservices is as expected.
assert int(self.nodes[0].getnetworkinfo()['localservices'], 16) & NODE_COMPACT_FILTERS != 0
assert_not_equal(int(self.nodes[0].getnetworkinfo()['localservices'], 16) & NODE_COMPACT_FILTERS, 0)
assert int(self.nodes[1].getnetworkinfo()['localservices'], 16) & NODE_COMPACT_FILTERS == 0

self.log.info("get cfcheckpt on chain to be re-orged out.")
Expand All @@ -94,7 +94,7 @@ def run_test(self):
self.nodes[0].syncwithvalidationinterfacequeue()

main_block_hash = self.nodes[0].getblockhash(1000)
assert main_block_hash != stale_block_hash, "node 0 chain did not reorganize"
assert_not_equal(main_block_hash, stale_block_hash, "node 0 chain did not reorganize")

self.log.info("Check that peers can fetch cfcheckpt on active chain.")
tip_hash = self.nodes[0].getbestblockhash()
Expand Down
8 changes: 4 additions & 4 deletions test/functional/p2p_compactblocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def announce_cmpct_block(node, peer):

cmpct_block.use_witness = True
delivery_peer.send_and_ping(msg_cmpctblock(cmpct_block.to_p2p()))
assert int(node.getbestblockhash(), 16) != block.sha256
assert_not_equal(int(node.getbestblockhash(), 16), block.sha256)

msg = msg_no_witness_blocktxn()
msg.block_transactions.blockhash = block.sha256
Expand Down Expand Up @@ -869,19 +869,19 @@ def announce_cmpct_block(node, peer, txn_count):
with p2p_lock:
# The second peer to announce should still get a getblocktxn
assert "getblocktxn" in delivery_peer.last_message
assert int(node.getbestblockhash(), 16) != block.sha256
assert_not_equal(int(node.getbestblockhash(), 16), block.sha256)

inbound_peer.send_and_ping(msg_cmpctblock(cmpct_block.to_p2p()))
with p2p_lock:
# The third inbound peer to announce should *not* get a getblocktxn
assert "getblocktxn" not in inbound_peer.last_message
assert int(node.getbestblockhash(), 16) != block.sha256
assert_not_equal(int(node.getbestblockhash(), 16), block.sha256)

outbound_peer.send_and_ping(msg_cmpctblock(cmpct_block.to_p2p()))
with p2p_lock:
# The third peer to announce should get a getblocktxn if outbound
assert "getblocktxn" in outbound_peer.last_message
assert int(node.getbestblockhash(), 16) != block.sha256
assert_not_equal(int(node.getbestblockhash(), 16), block.sha256)

# Second peer completes the compact block first
msg = msg_blocktxn()
Expand Down
12 changes: 6 additions & 6 deletions test/functional/p2p_getaddr_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def run_test(self):

if i > 0:
# Responses from different binds should be unique
assert last_response_on_local_bind != addr_receiver_onion1.get_received_addrs()
assert last_response_on_local_bind != addr_receiver_onion2.get_received_addrs()
assert last_response_on_onion_bind1 != addr_receiver_onion2.get_received_addrs()
assert_not_equal(last_response_on_local_bind, addr_receiver_onion1.get_received_addrs())
assert_not_equal(last_response_on_local_bind, addr_receiver_onion2.get_received_addrs())
assert_not_equal(last_response_on_onion_bind1, addr_receiver_onion2.get_received_addrs())
# Responses on from the same bind should be the same
assert_equal(last_response_on_local_bind, addr_receiver_local.get_received_addrs())
assert_equal(last_response_on_onion_bind1, addr_receiver_onion1.get_received_addrs())
Expand Down Expand Up @@ -114,9 +114,9 @@ def run_test(self):
addr_receiver_onion2.wait_until(addr_receiver_onion2.addr_received)

# new response is different
assert set(last_response_on_local_bind) != set(addr_receiver_local.get_received_addrs())
assert set(last_response_on_onion_bind1) != set(addr_receiver_onion1.get_received_addrs())
assert set(last_response_on_onion_bind2) != set(addr_receiver_onion2.get_received_addrs())
assert_not_equal(set(last_response_on_local_bind), set(addr_receiver_local.get_received_addrs()))
assert_not_equal(set(last_response_on_onion_bind1), set(addr_receiver_onion1.get_received_addrs()))
assert_not_equal(set(last_response_on_onion_bind2), set(addr_receiver_onion2.get_received_addrs()))


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion test/functional/p2p_handshake.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_desirable_service_flags(self, node, service_flag_tests, desirable_servi
expected_result = "disconnect" if expect_disconnect else "connect"
self.log.info(f' - services 0x{services:08x}, type "{conn_type}" [{expected_result}]')
if expect_disconnect:
assert (services & desirable_service_flags) != desirable_service_flags
assert_not_equal((services & desirable_service_flags), desirable_service_flags)
expected_debug_log = f'does not offer the expected services ' \
f'({services:08x} offered, {desirable_service_flags:08x} expected)'
with node.assert_debug_log([expected_debug_log]):
Expand Down
2 changes: 1 addition & 1 deletion test/functional/p2p_invalid_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run_test(self):
block2.vtx.append(tx2)
assert_equal(block2.hashMerkleRoot, block2.calc_merkle_root())
assert_equal(orig_hash, block2.rehash())
assert block2_orig.vtx != block2.vtx
assert_not_equal(block2_orig.vtx, block2.vtx)

peer.send_blocks_and_test([block2], node, success=False, reject_reason='bad-txns-duplicate')

Expand Down
8 changes: 4 additions & 4 deletions test/functional/p2p_orphan_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def assert_never_requested(self, txhash):
"""Check that the node has never sent us a getdata for this hash (int type)"""
for getdata in self.getdata_received:
for request in getdata.inv:
assert request.hash != txhash
assert_not_equal(request.hash, txhash)

class OrphanHandlingTest(BitcoinTestFramework):
def set_test_params(self):
Expand Down Expand Up @@ -145,7 +145,7 @@ def create_malleated_version(self, tx):
tx_bad_wit.wit.vtxinwit[0].scriptWitness.stack = [b'garbage']

assert_equal(tx["txid"], tx_bad_wit.rehash())
assert tx["wtxid"] != tx_bad_wit.getwtxid()
assert_not_equal(tx["wtxid"], tx_bad_wit.getwtxid())

return tx_bad_wit

Expand Down Expand Up @@ -402,8 +402,8 @@ def test_orphan_inherit_rejection(self):
assert_equal(parent_low_fee_nonsegwit["txid"], parent_low_fee_nonsegwit["tx"].getwtxid())
child = self.wallet.create_self_transfer(utxo_to_spend=parent_low_fee_nonsegwit["new_utxo"])
grandchild = self.wallet.create_self_transfer(utxo_to_spend=child["new_utxo"])
assert child["txid"] != child["tx"].getwtxid()
assert grandchild["txid"] != grandchild["tx"].getwtxid()
assert_not_equal(child["txid"], child["tx"].getwtxid())
assert_not_equal(grandchild["txid"], grandchild["tx"].getwtxid())

# Relay the parent. It should be rejected because it pays 0 fees.
self.relay_transaction(peer1, parent_low_fee_nonsegwit["tx"])
Expand Down
2 changes: 1 addition & 1 deletion test/functional/p2p_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def run_test(self):
self.log.info('Check that ping is sent after connection is established')
no_pong_node = self.nodes[0].add_p2p_connection(NodeNoPong())
self.mock_forward(3)
assert no_pong_node.last_message.pop('ping').nonce != 0
assert_not_equal(no_pong_node.last_message.pop('ping').nonce, 0)
self.check_peer_info(pingtime=None, minping=None, pingwait=3)

self.log.info('Reply without nonce cancels ping')
Expand Down
16 changes: 8 additions & 8 deletions test/functional/p2p_segwit.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def run_test(self):
# self.std_wtx_node is for testing node1 with wtxid relay
self.std_wtx_node = self.nodes[1].add_p2p_connection(TestP2PConn(wtxidrelay=True), services=P2P_SERVICES)

assert self.test_node.nServices & NODE_WITNESS != 0
assert_not_equal(self.test_node.nServices & NODE_WITNESS, 0)

# Keep a place to store utxo's that can be used in later tests
self.utxo = []
Expand Down Expand Up @@ -336,7 +336,7 @@ def test_unnecessary_witness_before_segwit_activation(self):
# Verify the hash with witness differs from the txid
# (otherwise our testing framework must be broken!)
tx.rehash()
assert tx.sha256 != tx.calc_sha256(with_witness=True)
assert_not_equal(tx.sha256, tx.calc_sha256(with_witness=True))

# Construct a block that includes the transaction.
block = self.build_next_block()
Expand Down Expand Up @@ -751,7 +751,7 @@ def test_witness_commitments(self):
block.solve()

# Test the test -- witness serialization should be different
assert msg_block(block).serialize() != msg_no_witness_block(block).serialize()
assert_not_equal(msg_block(block).serialize(), msg_no_witness_block(block).serialize())

# This empty block should be valid.
test_witness_block(self.nodes[0], self.test_node, block, accepted=True)
Expand All @@ -762,7 +762,7 @@ def test_witness_commitments(self):
block_2.solve()

# The commitment should have changed!
assert block_2.vtx[0].vout[-1] != block.vtx[0].vout[-1]
assert_not_equal(block_2.vtx[0].vout[-1], block.vtx[0].vout[-1])

# This should also be valid.
test_witness_block(self.nodes[0], self.test_node, block_2, accepted=True)
Expand Down Expand Up @@ -843,7 +843,7 @@ def test_block_malleability(self):
# TODO: repeat this test with a block that can be relayed
assert_equal('bad-witness-nonce-size', self.nodes[0].submitblock(block.serialize().hex()))

assert self.nodes[0].getbestblockhash() != block.hash
assert_not_equal(self.nodes[0].getbestblockhash(), block.hash)

block.vtx[0].wit.vtxinwit[0].scriptWitness.stack.pop()
assert block.get_weight() < MAX_BLOCK_WEIGHT
Expand Down Expand Up @@ -952,7 +952,7 @@ def test_submit_block(self):
block.vtx[0].wit = CTxWitness() # drop the nonce
block.solve()
assert_equal('bad-witness-merkle-match', self.nodes[0].submitblock(block.serialize().hex()))
assert self.nodes[0].getbestblockhash() != block.hash
assert_not_equal(self.nodes[0].getbestblockhash(), block.hash)

# Now redo commitment with the standard nonce, but let bitcoind fill it in.
add_witness_commitment(block, nonce=0)
Expand All @@ -975,7 +975,7 @@ def test_submit_block(self):

assert_equal('bad-txnmrklroot', self.nodes[0].submitblock(block_2.serialize().hex()))
# Tip should not advance!
assert self.nodes[0].getbestblockhash() != block_2.hash
assert_not_equal(self.nodes[0].getbestblockhash(), block_2.hash)

@subtest
def test_extra_witness_data(self):
Expand Down Expand Up @@ -1303,7 +1303,7 @@ def test_tx_relay_after_segwit_activation(self):
assert_equal(raw_tx["weight"], tx3.get_weight())
assert_equal(len(raw_tx["vin"][0]["txinwitness"]), 1)
assert_equal(raw_tx["vin"][0]["txinwitness"][0], witness_script.hex())
assert vsize != raw_tx["size"]
assert_not_equal(vsize, raw_tx["size"])

# Cleanup: mine the transactions and update utxo for next test
self.generate(self.nodes[0], 1)
Expand Down
2 changes: 1 addition & 1 deletion test/functional/p2p_sendtxrcncl.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def run_test(self):
no_txrelay_version_msg.relay = 0
peer.send_message(no_txrelay_version_msg)
peer.wait_for_verack()
assert peer.nServices & NODE_BLOOM != 0
assert_not_equal(peer.nServices & NODE_BLOOM, 0)
assert not peer.sendtxrcncl_msg_received
self.nodes[0].disconnect_p2ps()

Expand Down
4 changes: 2 additions & 2 deletions test/functional/p2p_v2_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def run_test(self):
self.connect_nodes(2, 3, peer_advertises_v2=False)
self.generate(self.nodes[2], 8, sync_fun=lambda: self.sync_all(self.nodes[2:4]))
assert_equal(self.nodes[3].getblockcount(), 8)
assert self.nodes[0].getbestblockhash() != self.nodes[2].getbestblockhash()
assert_not_equal(self.nodes[0].getbestblockhash(), self.nodes[2].getbestblockhash())
# verify there is a v1 connection between node 2 and 3
node_2_info = self.nodes[2].getpeerinfo()
node_3_info = self.nodes[3].getpeerinfo()
Expand All @@ -90,7 +90,7 @@ def run_test(self):
self.connect_nodes(2, 1, peer_advertises_v2=False) # cannot enable v2 on v1 node
self.sync_all(self.nodes[1:3])
assert_equal(self.nodes[1].getblockcount(), 8)
assert self.nodes[0].getbestblockhash() != self.nodes[1].getbestblockhash()
assert_not_equal(self.nodes[0].getbestblockhash(), self.nodes[1].getbestblockhash())
# verify there is a v1 connection between node 1 and 2
node_1_info = self.nodes[1].getpeerinfo()
node_2_info = self.nodes[2].getpeerinfo()
Expand Down
2 changes: 1 addition & 1 deletion test/functional/rpc_blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def _test_gettxoutsetinfo(self):
# hash_type muhash should return a different UTXO set hash.
res6 = node.gettxoutsetinfo(hash_type='muhash')
assert 'muhash' in res6
assert res['hash_serialized_3'] != res6['muhash']
assert_not_equal(res['hash_serialized_3'], res6['muhash'])

# muhash should not be returned unless requested.
for r in [res, res2, res3, res4, res5]:
Expand Down
Loading

0 comments on commit 764c54c

Please sign in to comment.