wallet.py: remove placeholder code re p2sh imported wallets

This commit is contained in:
SomberNight 2018-06-13 19:23:09 +02:00
parent 4193c7ff14
commit 11ffc5ca8a
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -2039,12 +2039,7 @@ class Imported_Wallet(Simple_Wallet):
txin['x_pubkeys'] = [pubkey] txin['x_pubkeys'] = [pubkey]
txin['signatures'] = [None] txin['signatures'] = [None]
else: else:
redeem_script = self.addresses[address]['redeem_script'] raise NotImplementedError('imported wallets for p2sh are not implemented')
num_sig = 2
num_keys = 3
txin['num_sig'] = num_sig
txin['redeem_script'] = redeem_script
txin['signatures'] = [None] * num_keys
def pubkeys_to_address(self, pubkey): def pubkeys_to_address(self, pubkey):
for addr, v in self.addresses.items(): for addr, v in self.addresses.items():