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
address.py
authproxy.py
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
descriptors.py
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
script_util.py
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
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
util.py non-scripted-diff: bump copyright year to 2023 2024-02-24 11:05:37 -06:00
wallet_util.py
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