aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_dos_header_tree.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-06-20 14:01:36 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-06-21 14:33:59 +0200
commit191405420815d49ab50184513717a303fc2744d6 (patch)
tree64c9af3f017abdf55e4b7f6da8e3f164a4c14bc7 /test/functional/p2p_dos_header_tree.py
parenta79396fe5f8f81c78cf84117a87074c6ff6c9d95 (diff)
downloadbitcoin-191405420815d49ab50184513717a303fc2744d6.tar.xz
scripted-diff: test: rename `FromHex` to `from_hex`
-BEGIN VERIFY SCRIPT- sed -i 's/\<FromHex\>/from_hex/g' $(git grep -l FromHex) -END VERIFY SCRIPT- Co-authored-by: MarcoFalke <falke.marco@gmail.com>
Diffstat (limited to 'test/functional/p2p_dos_header_tree.py')
-rwxr-xr-xtest/functional/p2p_dos_header_tree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/p2p_dos_header_tree.py b/test/functional/p2p_dos_header_tree.py
index 2349afa1ee..52a47c9bc2 100755
--- a/test/functional/p2p_dos_header_tree.py
+++ b/test/functional/p2p_dos_header_tree.py
@@ -6,7 +6,7 @@
from test_framework.messages import (
CBlockHeader,
- FromHex,
+ from_hex,
)
from test_framework.p2p import (
P2PInterface,
@@ -42,8 +42,8 @@ class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
self.headers = [l for l in h_lines if not l.startswith(FORK_PREFIX)]
self.headers_fork = [l[len(FORK_PREFIX):] for l in h_lines if l.startswith(FORK_PREFIX)]
- self.headers = [FromHex(CBlockHeader(), h) for h in self.headers]
- self.headers_fork = [FromHex(CBlockHeader(), h) for h in self.headers_fork]
+ self.headers = [from_hex(CBlockHeader(), h) for h in self.headers]
+ self.headers_fork = [from_hex(CBlockHeader(), h) for h in self.headers_fork]
self.log.info("Feed all non-fork headers, including and up to the first checkpoint")
peer_checkpoint = self.nodes[0].add_p2p_connection(P2PInterface())