Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_filter.py
Show All 13 Lines | from test_framework.messages import ( | ||||
MSG_FILTERED_BLOCK, | MSG_FILTERED_BLOCK, | ||||
msg_filteradd, | msg_filteradd, | ||||
msg_filterclear, | msg_filterclear, | ||||
msg_filterload, | msg_filterload, | ||||
msg_getdata, | msg_getdata, | ||||
msg_mempool, | msg_mempool, | ||||
msg_version, | msg_version, | ||||
) | ) | ||||
from test_framework.mininode import P2PInterface, p2p_lock | from test_framework.p2p import P2PInterface, p2p_lock | ||||
from test_framework.script import MAX_SCRIPT_ELEMENT_SIZE | from test_framework.script import MAX_SCRIPT_ELEMENT_SIZE | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
class P2PBloomFilter(P2PInterface): | class P2PBloomFilter(P2PInterface): | ||||
# This is a P2SH watch-only wallet | # This is a P2SH watch-only wallet | ||||
watch_script_pubkey = 'a914ffffffffffffffffffffffffffffffffffffffff87' | watch_script_pubkey = 'a914ffffffffffffffffffffffffffffffffffffffff87' | ||||
# The initial filter (n=10, fp=0.000001) with just the above scriptPubKey | # The initial filter (n=10, fp=0.000001) with just the above scriptPubKey | ||||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |