mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-11 21:19:51 +00:00
start using electrum protocol 1.4
This commit is contained in:
parent
c443231f29
commit
80bbd9edc3
1 changed files with 5 additions and 0 deletions
|
@ -740,6 +740,11 @@ class Network(PrintError):
|
||||||
async def get_balance_for_scripthash(self, sh: str) -> dict:
|
async def get_balance_for_scripthash(self, sh: str) -> dict:
|
||||||
return await self.interface.session.send_request('blockchain.scripthash.get_balance', [sh])
|
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:
|
def blockchain(self) -> Blockchain:
|
||||||
interface = self.interface
|
interface = self.interface
|
||||||
if interface and interface.blockchain is not None:
|
if interface and interface.blockchain is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue