implement getblock

This commit is contained in:
Jimmy Kiselak 2016-02-22 12:18:28 -05:00
parent c6d253cc25
commit c32f8d0998

View file

@ -917,7 +917,9 @@ class LBRYumWallet(LBRYWallet):
return d return d
def get_block(self, blockhash): def get_block(self, blockhash):
return defer.fail(NotImplementedError()) cmd = known_commands['getblock']
func = getattr(self.cmd_runner, cmd.name)
return threads.deferToThread(func, blockhash)
def get_most_recent_blocktime(self): def get_most_recent_blocktime(self):
header = self.network.get_header(self.network.get_local_height()) header = self.network.get_header(self.network.get_local_height())