integrate PSBT support natively. WIP
This commit is contained in:
@@ -5,8 +5,8 @@ import logging
|
||||
|
||||
from electrum import WalletStorage, Wallet
|
||||
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.network import TxBroadcastError, BestEffortRequestFailed
|
||||
from electrum.logging import console_stderr_handler
|
||||
|
||||
@@ -197,8 +197,9 @@ class ElectrumGui:
|
||||
if c == "n": return
|
||||
|
||||
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:
|
||||
print(repr(e))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user