Page MenuHomePhabricator

[tests] Replace bytes literals with hex literals
ClosedPublic

Authored by PiRK on Nov 2 2021, 11:04.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC214964805261: [tests] Replace bytes literals with hex literals
Summary

It's almost impossible to read bytes literals in code, so replace them
with the hex string literal and then convert them to a bytes object
using bytes.fromhex().

This is a backport of core#19253 [2/2]
https://github.com/bitcoin/bitcoin/pull/19253/commits/825fcae484f31182041dfacbf820e818d759b130

Test Plan

ninja check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable