From 1c35e15de7bf129d3e771b47b6ff542be8495d80 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 29 Jan 2014 16:48:24 +0100 Subject: [PATCH] get_proof command --- lib/commands.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index 3736489..f8fa0cf 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -97,6 +97,7 @@ register_command('validateaddress', 1, 1, False, False, False, 'Check that register_command('verifymessage', 3,-1, False, False, False, 'Verifies a signature', verifymessage_syntax) register_command('daemon', 1, 1, True, False, False, 'start/stop daemon') +register_command('getproof', 1, 1, True, False, False, 'start/stop daemon') @@ -222,6 +223,13 @@ class Commands: b = self.network.synchronous_get([ ('blockchain.address.get_balance',[addr]) ])[0] return str(Decimal(b)/100000000) + def getproof(self, addr): + p = self.network.synchronous_get([ ('blockchain.address.get_proof',[addr]) ])[0] + out = [] + for i,s in p: + out.append(i) + return out + def getservers(self): return self.network.get_servers() -- 1.7.1