dash/test/functional/test_framework
Odysseas Gabrielides 1fd442f229
feat: min protocol version check for SML serialisation (#5302)
## Issue being fixed or feature implemented
This was reported/requested by @HashEngineering:
> Older versions of our App won't sync due to if (obj.nVersion ==
BASIC_BLS_VERSION) . Older versions don't know what version a SML Entry
is. As such, they will never read the type field. On the android client
this causes an offset problem when reading the mnlistdiff and it will
throw an exception that bans the peer that supplied it. Soon enough, no
peers will be left to connect to because they will all give the android
client bad data.

## What was done?
With this PR, SML will serialise the new v19 fields (`nType`,
`platformHTTPPort`, `platformNodeID`) if the client's version is at
least equal to `70227`.
Note: Serialisation for hashing skips the above rule.

Also, functional test mininode protocol version is set to `70227`.

## How Has This Been Tested?


## Breaking Changes


## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [x] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation

**For repository code-owners and collaborators only**
- [x] I have assigned this pull request to a milestone
2023-04-09 21:47:31 -05:00
..
__init__.py
address.py Merge #17984: test: Add p2p test for forcerelay permission 2022-10-20 11:48:12 -04:00
authproxy.py
blocktools.py
coverage.py
descriptors.py
key.py
messages.py feat: min protocol version check for SML serialisation (#5302) 2023-04-09 21:47:31 -05:00
mininode.py Merge #19060: test: Remove global wait_until from p2p_getdata 2023-01-22 00:27:52 -06:00
muhash.py
netutil.py
ripemd160.py
script_util.py
script.py
siphash.py
socks5.py
test_framework.py fix(tests): Bumps in wait_for_tx/instantlock (#5301) 2023-04-09 21:47:24 -05:00
test_node.py Merge #19023: test: Fix intermittent ETIMEDOUT on FreeBSD 2023-01-23 12:22:30 -06:00
test_shell.py Merge #17378: TestShell: Fix typos & implement cleanups 2023-01-23 12:22:29 -06:00
util.py merge bitcoin#21634: Skip SQLite fsyncs while testing 2023-02-07 10:53:33 -06:00
wallet_util.py