> test: Treat msg_version.relay as unsigned
> The C++ code treats bool as uint8_t, so the python tests should as well.
>
> This also allows to simplify the code, because converting an empty byte
> array to int gives int(0).
>
> >>> int.from_bytes(b'')
> 0
https://github.com/bitcoin/bitcoin/pull/29067/changes/fa3886b7c69cbbe564478f30bb2c35e9e6b1cffa
> This is done in prepration for the scripted diff, which can not deal
> with the 0 literal int.
https://github.com/bitcoin/bitcoin/pull/29067/changes/fafc0d68eef9c9381b1a3d8e160aad9eeb8540a7
This is a partial backport of [[https://github.com/bitcoin/bitcoin/pull/29067 | core#29067]]