Skip to content

Commit ea9fe20

Browse files
committed
fix pycodestyle and docs
1 parent e85e050 commit ea9fe20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/protocol-methods.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ Name methods (Namecoin and compatible coins)
12541254

12551255

12561256
blockchain.name.get_value_proof
1257-
=============================
1257+
===============================
12581258

12591259
Returns a name resolution proof, suitable for low-latency (single round-trip) resolution.
12601260

electrumx/server/session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,9 @@ async def name_get_value_proof(self, scripthash, cp_height=0):
18551855
txid = update['tx_hash']
18561856
height = update['height']
18571857

1858-
if self.coin.NAME_EXPIRATION is not None and prev_height is not None and height < prev_height - self.coin.NAME_EXPIRATION:
1858+
if (self.coin.NAME_EXPIRATION is not None
1859+
and prev_height is not None
1860+
and height < prev_height - self.coin.NAME_EXPIRATION):
18591861
break
18601862

18611863
tx = await(self.transaction_get(txid))

0 commit comments

Comments
 (0)