dash/test/functional/test_framework
MarcoFalke 65045a0c9d
Merge #21357: test: Unconditionally check for fRelay field in test framework
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
2024-03-04 00:21:21 -06:00
..
__init__.py Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
address.py Merge #18965: tests: implement base58_decode 2023-12-06 12:33:15 -06:00
authproxy.py Merge #19368: test: improve functional tests compatibility with BSD/macOS 2024-01-06 19:30:15 -06:00
bip340_test_vectors.csv partial bitcoin#19953: Implement BIP 340-342 validation 2024-02-19 10:17:10 -06:00
blockfilter.py partial bitcoin#26341: add BIP158 false-positive element check in rpc_scanblocks.py 2024-02-27 10:06:20 -06:00
blocktools.py merge bitcoin#19401: Use GBT to get block versions correct 2024-02-06 08:44:05 -06:00
coverage.py Merge bitcoin/bitcoin#22139: test: add type annotations to util.get_rpc_proxy 2023-12-03 20:13:09 -06:00
descriptors.py Merge #18032: rpc: Output a descriptor in createmultisig and addmultisigaddress 2023-04-06 20:15:47 +03:00
ellswift_decode_test_vectors.csv merge bitcoin#24005: add python implementation of Elligator swift 2024-02-19 10:17:13 -06:00
ellswift.py merge bitcoin#24005: add python implementation of Elligator swift 2024-02-19 10:17:13 -06:00
key.py partial bitcoin#26222: Introduce secp256k1 module with field and group classes to test framework 2024-02-19 10:17:12 -06:00
messages.py Merge #21357: test: Unconditionally check for fRelay field in test framework 2024-03-04 00:21:21 -06:00
muhash.py merge bitcoin#27538: remove modinv python util helper function 2024-02-19 10:17:10 -06:00
netutil.py partial bitcoin#20842: consolidate typo & url fixing 2024-02-19 10:17:12 -06:00
p2p.py Merge #19272: net, test: invalid p2p messages and test framework improvements 2024-02-07 10:27:41 -06:00
ripemd160.py docs/build: Kubuntu 22.04 build fix (#4843) 2022-05-28 23:27:04 -05:00
script_util.py Merge #18732: test: Remove unused, undocumented and misleading CScript.__add__ 2023-03-03 23:07:15 +05:30
script.py Merge #21107: test: remove type: comments in favour of actual annotations 2024-02-14 10:34:10 -06:00
secp256k1.py partial bitcoin#26222: Introduce secp256k1 module with field and group classes to test framework 2024-02-19 10:17:12 -06:00
siphash.py partial bitcoin#26341: add BIP158 false-positive element check in rpc_scanblocks.py 2024-02-27 10:06:20 -06:00
socks5.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
test_framework.py Merge #5824: feat: generalize ehf activation 2024-02-28 19:54:04 -06:00
test_node.py Merge #19804: test/refactor: reference p2p objects explicitly and remove confusing Test_Node.p2p property 2024-01-27 22:55:29 -06:00
test_shell.py Merge #17378: TestShell: Fix typos & implement cleanups 2023-01-23 12:22:29 -06:00
util.py non-scripted-diff: bump copyright year to 2023 2024-02-24 11:05:37 -06:00
wallet_util.py Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
wallet.py Merge #20385: test: run mempool_spend_coinbase.py even with wallet disabled 2024-01-26 12:50:32 -06:00
xswiftec_inv_test_vectors.csv merge bitcoin#24005: add python implementation of Elligator swift 2024-02-19 10:17:13 -06:00