[Test] MiniNode: Update protocol version and network magics
This commit is contained in:
parent
31bc3d2581
commit
0de9a481ab
|
@ -32,7 +32,7 @@ import logging
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
BIP0031_VERSION = 60000
|
BIP0031_VERSION = 60000
|
||||||
MY_VERSION = 60001 # past bip-31 for ping/pong
|
MY_VERSION = 170002 # past bip-31 for ping/pong
|
||||||
MY_SUBVERSION = "/python-mininode-tester:0.0.1/"
|
MY_SUBVERSION = "/python-mininode-tester:0.0.1/"
|
||||||
|
|
||||||
MAX_INV_SZ = 50000
|
MAX_INV_SZ = 50000
|
||||||
|
@ -1294,9 +1294,9 @@ class NodeConn(asyncore.dispatcher):
|
||||||
"mempool": msg_mempool
|
"mempool": msg_mempool
|
||||||
}
|
}
|
||||||
MAGIC_BYTES = {
|
MAGIC_BYTES = {
|
||||||
"mainnet": "\xf9\xbe\xb4\xd9", # mainnet
|
"mainnet": "\x24\xe9\x27\x64", # mainnet
|
||||||
"testnet3": "\x0b\x11\x09\x07", # testnet3
|
"testnet3": "\xfa\x1a\xf9\xbf", # testnet3
|
||||||
"regtest": "\xfa\xbf\xb5\xda" # regtest
|
"regtest": "\xaa\xe8\x3f\x5f" # regtest
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, dstaddr, dstport, rpc, callback, net="regtest"):
|
def __init__(self, dstaddr, dstport, rpc, callback, net="regtest"):
|
||||||
|
|
Loading…
Reference in New Issue