Browse Source

start using electrum protocol 1.4

regtest_lnd
SomberNight 7 years ago
parent
commit
0d81444f27
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/network.py

5
electrum/network.py

@ -1057,6 +1057,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:

Loading…
Cancel
Save