integrate PSBT support natively. WIP
This commit is contained in:
@@ -9,8 +9,8 @@ import logging
|
||||
|
||||
import electrum
|
||||
from electrum.util import format_satoshis
|
||||
from electrum.bitcoin import is_address, COIN, TYPE_ADDRESS
|
||||
from electrum.transaction import TxOutput
|
||||
from electrum.bitcoin import is_address, COIN
|
||||
from electrum.transaction import PartialTxOutput
|
||||
from electrum.wallet import Wallet
|
||||
from electrum.storage import WalletStorage
|
||||
from electrum.network import NetworkParameters, TxBroadcastError, BestEffortRequestFailed
|
||||
@@ -360,8 +360,9 @@ class ElectrumGui:
|
||||
else:
|
||||
password = None
|
||||
try:
|
||||
tx = self.wallet.mktx([TxOutput(TYPE_ADDRESS, self.str_recipient, amount)],
|
||||
password, self.config, fee)
|
||||
tx = self.wallet.mktx(outputs=[PartialTxOutput.from_address_and_value(self.str_recipient, amount)],
|
||||
password=password,
|
||||
fee=fee)
|
||||
except Exception as e:
|
||||
self.show_message(repr(e))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user