mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
65045a0c9d
39a9ec579f023ab262a1abd1f0c869be5b1f3f4d Unconditionally check for fRelay field in test framework (Troy Giorshev) Pull request description: picking up #20411 (rebased onto master) There is a discrepancy in the implementation of our p2p protocol between bitcoind and the testing framework. The fRelay field is an optional field at the end of a version message as of protocol version 70001. However, when deserializing a message in bitcoind, we don't check the version to see if it should have an fRelay field or not. Instead, we unconditionally attempt to deserialize into the field. This commit brings the testing framework in line with the implementation in core. This matters for a version message with the following fields: Version = 60000 fRelay = 1 Bitcoind would deserialize this into a version message with Version=60000 and fRelay=1, whereas (before this commit) our testing framework would deserialize this into a version message with Version=60000 and fRelay=0. ACKs for top commit: jnewbery: utACK 39a9ec579f023ab262a1abd1f0c869be5b1f3f4d Tree-SHA512: 13a23f1180b7121ba41cb85baa38094b41f4607a7c88b3384775177cb116e76faf5514760624f98a4e8a830767407c46753a7e0285158c33e0c6ce395de8f15c |
||
---|---|---|
.. | ||
__init__.py | ||
address.py | ||
authproxy.py | ||
bip340_test_vectors.csv | ||
blockfilter.py | ||
blocktools.py | ||
coverage.py | ||
descriptors.py | ||
ellswift_decode_test_vectors.csv | ||
ellswift.py | ||
key.py | ||
messages.py | ||
muhash.py | ||
netutil.py | ||
p2p.py | ||
ripemd160.py | ||
script_util.py | ||
script.py | ||
secp256k1.py | ||
siphash.py | ||
socks5.py | ||
test_framework.py | ||
test_node.py | ||
test_shell.py | ||
util.py | ||
wallet_util.py | ||
wallet.py | ||
xswiftec_inv_test_vectors.csv |