mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-02 16:59:44 +01:00
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>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user