tstart using electrum protocol 1.4 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit c1d182601483be4829526a686036e09247a15099
DIR parent 935f11522d0b56bfb10fdcfadf69719d3905fd18
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Mon, 23 Jul 2018 20:44:08 +0200
start using electrum protocol 1.4
Diffstat:
M electrum/network.py | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
DIR diff --git a/electrum/network.py b/electrum/network.py
t@@ -1064,6 +1064,11 @@ class Network(Logger):
raise Exception(f"{repr(sh)} is not a scripthash")
return await self.interface.session.send_request('blockchain.scripthash.get_balance', [sh])
+ @best_effort_reliable
+ async def get_txid_from_txpos(self, tx_height, tx_pos, merkle):
+ command = 'blockchain.transaction.id_from_pos'
+ return await self.interface.session.send_request(command, [tx_height, tx_pos, merkle])
+
def blockchain(self) -> Blockchain:
interface = self.interface
if interface and interface.blockchain is not None: