wallet: fix wallet.make_unsigned_transaction method signature
- "fee_policy" arg is actually mandatory
- and fix test/stdio guis following fee_policy/config split
follow-up 840243e029
This commit is contained in:
@@ -13,6 +13,7 @@ from electrum.util import format_satoshis, EventListener, event_listener
|
||||
from electrum.bitcoin import is_address, COIN
|
||||
from electrum.transaction import PartialTxOutput
|
||||
from electrum.network import TxBroadcastError, BestEffortRequestFailed
|
||||
from electrum.fee_policy import FixedFeePolicy
|
||||
|
||||
_ = lambda x:x # i18n
|
||||
|
||||
@@ -33,7 +34,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
|
||||
password = getpass.getpass('Password:', stream=None)
|
||||
storage.decrypt(password)
|
||||
|
||||
db = WalletDB(storage.read(), storage=storage, manual_upgrades=False)
|
||||
db = WalletDB(storage.read(), storage=storage, upgrade=True)
|
||||
|
||||
self.done = 0
|
||||
self.last_balance = ""
|
||||
@@ -214,7 +215,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
|
||||
tx = self.wallet.create_transaction(
|
||||
outputs=[PartialTxOutput.from_address_and_value(self.str_recipient, amount)],
|
||||
password=password,
|
||||
fee=fee,
|
||||
fee_policy=FixedFeePolicy(fee),
|
||||
)
|
||||
except Exception as e:
|
||||
print(repr(e))
|
||||
|
||||
Reference in New Issue
Block a user