diff --git a/test/functional/chronik_ws_ordering.py b/test/functional/chronik_ws_ordering.py --- a/test/functional/chronik_ws_ordering.py +++ b/test/functional/chronik_ws_ordering.py @@ -99,9 +99,9 @@ ifp_hash = "d37c4c809fe9840e7bfa77b86bd47163f6fb6c60" # 1 P2PKH script, just the IFP address p2pkh_script = CScript(bytes.fromhex(f"76a914{ifp_hash}88ac")) - # 16 P2SH scripts, 0000...000i for i = 0, ... 14, and IFP address hash + # 8 P2SH scripts, 0000...000i for i = 0, ... 6, and IFP address hash p2sh_hashes = [] - for i in range(15): + for i in range(7): p2sh_hashes.append(i.to_bytes(20, "big").hex()) p2sh_hashes.append(ifp_hash) p2sh_scripts = [ @@ -174,10 +174,10 @@ p2pkh_txid = send_to_script(p2pkh_script) assert_equal(ws.recv(), ws_tx_msg(p2pkh_txid, pb.TX_ADDED_TO_MEMPOOL)) - # Send 240 txs to the p2sh scripts, 15 to each script + # Send 80 txs to the p2sh scripts, 10 to each script p2sh_txids = [] for p2sh_script in p2sh_scripts: - for i in range(15): + for i in range(10): p2sh_txid = send_to_script(p2sh_script) p2sh_txids.append(p2sh_txid) assert_equal(ws.recv(), ws_tx_msg(p2sh_txid, pb.TX_ADDED_TO_MEMPOOL))