X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=lib%2Fcommands.py;h=f3cf783ad2254a84184bf8d8f271b87ad015ffcb;hb=1bb00ff5af3a7f23f23c92b69cc2ff412731a7f3;hp=77b748bcc7b53dd6673c49aa51c98daeac567611;hpb=01f3e31c6b79f483c82a91fdbadab31f186a7bfe;p=electrum-nvc.git diff --git a/lib/commands.py b/lib/commands.py index 77b748b..f3cf783 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -207,7 +207,7 @@ class Commands: def getpubkeys(self, addr): out = { 'address':addr } - out['pubkeys'] = self.wallet.getpubkeys(addr) + out['pubkeys'] = self.wallet.get_public_keys(addr) return out def getbalance(self, account= None): @@ -268,7 +268,6 @@ class Commands: return bitcoin.verify_message(address, signature, message) def _mktx(self, outputs, fee = None, change_addr = None, domain = None): - for to_address, amount in outputs: if not is_valid(to_address): raise Exception("Invalid Bitcoin address", to_address) @@ -298,7 +297,7 @@ class Commands: break amount = int(100000000*amount) - final_outputs.append((to_address, amount)) + final_outputs.append(('address', to_address, amount)) if fee: fee = int(100000000*fee) return self.wallet.mktx(final_outputs, self.password, fee , change_addr, domain)