aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-08-25 11:54:13 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-08-25 14:27:25 +0200
commitfa39c62eb7f39e7d249b8d46c075c4e7a9aec684 (patch)
tree26e6887676f9b150ecd396a9fd7318a3c4d0edb7 /test/functional
parent8e0f341779e1d2754432765ec09deb7488f5b093 (diff)
test: inline hashToHex
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/p2p_feefilter.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/functional/p2p_feefilter.py b/test/functional/p2p_feefilter.py
index 3a9b8dfbd7..fc77af2f10 100755
--- a/test/functional/p2p_feefilter.py
+++ b/test/functional/p2p_feefilter.py
@@ -12,10 +12,6 @@ from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal
-def hashToHex(hash):
- return format(hash, '064x')
-
-
class FeefilterConn(P2PInterface):
feefilter_received = False
@@ -35,7 +31,7 @@ class TestP2PConn(P2PInterface):
def on_inv(self, message):
for i in message.inv:
if (i.type == MSG_TX) or (i.type == MSG_WTX):
- self.txinvs.append(hashToHex(i.hash))
+ self.txinvs.append('{:064x}'.format(i.hash))
def wait_for_invs_to_match(self, invs_expected):
invs_expected.sort()