Skip to content

Commit fa39c62

Browse files
author
MarcoFalke
committed
test: inline hashToHex
1 parent 8e0f341 commit fa39c62

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/functional/p2p_feefilter.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
from test_framework.util import assert_equal
1313

1414

15-
def hashToHex(hash):
16-
return format(hash, '064x')
17-
18-
1915
class FeefilterConn(P2PInterface):
2016
feefilter_received = False
2117

@@ -35,7 +31,7 @@ def __init__(self):
3531
def on_inv(self, message):
3632
for i in message.inv:
3733
if (i.type == MSG_TX) or (i.type == MSG_WTX):
38-
self.txinvs.append(hashToHex(i.hash))
34+
self.txinvs.append('{:064x}'.format(i.hash))
3935

4036
def wait_for_invs_to_match(self, invs_expected):
4137
invs_expected.sort()

0 commit comments

Comments
 (0)