Skip to content

Commit

Permalink
Namecoin: Use new PartialTxInput in wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 6, 2020
1 parent a4c7429 commit 20c91dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electrum_nmc/electrum/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,8 @@ def fee_estimator(size: Union[int, float, Decimal]) -> int:

# Namecoin: remove any new name inputs if the existing
# transaction already has a name input.
if any([self.db.transactions[i["prevout_hash"]].outputs()[i["prevout_n"]].name_op is not None for i in txi]):
name_inputs = list(filter(lambda i: self.db.transactions[i["prevout_hash"]].outputs()[i["prevout_n"]].name_op is None, name_inputs))
if any([i.name_op is not None for i in txi]):
name_inputs = []
else:
txi = []
txo = []
Expand Down

0 comments on commit 20c91dc

Please sign in to comment.