removed blockchain.block.get_block from wallet server API

This commit is contained in:
Lex Berezhny 2019-04-27 17:19:15 -04:00
parent 6a2efa54ab
commit bfc107fdb3

View file

@ -41,7 +41,6 @@ class LBRYElectrumX(ElectrumX):
'blockchain.claimtrie.getvaluesforuris': self.claimtrie_getvalueforuris, 'blockchain.claimtrie.getvaluesforuris': self.claimtrie_getvalueforuris,
'blockchain.claimtrie.getclaimssignedbyid': self.claimtrie_getclaimssignedbyid, 'blockchain.claimtrie.getclaimssignedbyid': self.claimtrie_getclaimssignedbyid,
'blockchain.block.get_server_height': self.get_server_height, 'blockchain.block.get_server_height': self.get_server_height,
'blockchain.block.get_block': self.get_block,
} }
# fixme: methods we use but shouldnt be using anymore. To be removed when torba goes out # fixme: methods we use but shouldnt be using anymore. To be removed when torba goes out
handlers.update({ handlers.update({
@ -104,9 +103,6 @@ class LBRYElectrumX(ElectrumX):
verbose = False verbose = False
return await self.daemon_request('getrawtransaction', tx_hash, verbose) return await self.daemon_request('getrawtransaction', tx_hash, verbose)
async def get_block(self, block_hash):
return await self.daemon.deserialised_block(block_hash)
async def get_server_height(self): async def get_server_height(self):
return self.bp.height return self.bp.height