aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_getblockfrompeer.py
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2021-12-08 20:16:36 +0700
committerSjors Provoost <sjors@sprovoost.nl>2021-12-24 16:29:03 +0100
commit34d5399211eeb61e7e7961c301fb2ddea8aa3f6a (patch)
treeadc860d9eaeb6ae1de648eef86415988a7fd8352 /test/functional/rpc_getblockfrompeer.py
parent60243cac7286e4c4bdda7094bef4cf6d1564b583 (diff)
downloadbitcoin-34d5399211eeb61e7e7961c301fb2ddea8aa3f6a.tar.xz
rpc: more detailed errors for getblockfrompeer
Diffstat (limited to 'test/functional/rpc_getblockfrompeer.py')
-rwxr-xr-xtest/functional/rpc_getblockfrompeer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rpc_getblockfrompeer.py b/test/functional/rpc_getblockfrompeer.py
index 19af197530..1ecf9c1057 100755
--- a/test/functional/rpc_getblockfrompeer.py
+++ b/test/functional/rpc_getblockfrompeer.py
@@ -56,7 +56,7 @@ class GetBlockFromPeerTest(BitcoinTestFramework):
assert_raises_rpc_error(-1, "Block header missing", self.nodes[0].getblockfrompeer, "00" * 32, 0)
self.log.info("Non-existent peer generates error")
- assert_raises_rpc_error(-1, f"Peer nodeid {peer_0_peer_1_id + 1} does not exist", self.nodes[0].getblockfrompeer, short_tip, peer_0_peer_1_id + 1)
+ assert_raises_rpc_error(-1, "Peer does not exist", self.nodes[0].getblockfrompeer, short_tip, peer_0_peer_1_id + 1)
self.log.info("Successful fetch")
result = self.nodes[0].getblockfrompeer(short_tip, peer_0_peer_1_id)