From c32f8d099815ac4b43aadc36c27ca198bd8c2ce6 Mon Sep 17 00:00:00 2001 From: Jimmy Kiselak Date: Mon, 22 Feb 2016 12:18:28 -0500 Subject: [PATCH] implement getblock --- lbrynet/core/LBRYcrdWallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/core/LBRYcrdWallet.py b/lbrynet/core/LBRYcrdWallet.py index be0a5a694..74bbb4923 100644 --- a/lbrynet/core/LBRYcrdWallet.py +++ b/lbrynet/core/LBRYcrdWallet.py @@ -917,7 +917,9 @@ class LBRYumWallet(LBRYWallet): return d 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): header = self.network.get_header(self.network.get_local_height())