Traceback (most recent call last):
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/plugins/trustedcoin/trustedcoin.py", line 334, in make_unsigned_transaction
    tx = mk_tx(outputs + [fee_output])
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/plugins/trustedcoin/trustedcoin.py", line 328, in <lambda>
    self, coins=coins, outputs=o, fee=fee, change_addr=change_addr, rbf=rbf)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/wallet.py", line 1393, in make_unsigned_transaction
    dust_threshold=self.dust_threshold())
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/coinchooser.py", line 336, in make_tx
    self.penalty_func(base_tx, tx_from_buckets=tx_from_buckets))
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/coinchooser.py", line 430, in choose_buckets
    candidates = self.bucket_candidates_prefer_confirmed(buckets, sufficient_funds)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/coinchooser.py", line 424, in bucket_candidates_prefer_confirmed
    raise NotEnoughFunds()
electrum.util.NotEnoughFunds: Insufficient funds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/gui/qt/main_window.py", line 1650, in do_pay
    self.do_pay_invoice(self.pending_invoice)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/gui/qt/main_window.py", line 1664, in do_pay_invoice
    self.pay_onchain_dialog(self.get_coins(), invoice.outputs)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/gui/qt/main_window.py", line 1716, in pay_onchain_dialog
    conf_dlg = ConfirmTxDialog(window=self, make_tx=make_tx, output_value=output_value, is_sweep=is_sweep)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/gui/qt/confirm_tx_dialog.py", line 177, in __init__
    BlockingWaitingDialog(window, _("Preparing transaction..."), self.update_tx)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/gui/qt/util.py", line 344, in __init__
    task()
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/gui/qt/confirm_tx_dialog.py", line 86, in update_tx
    self.tx = self.make_tx(fee_estimator)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/gui/qt/main_window.py", line 1709, in <lambda>
    is_sweep=is_sweep)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/plugins/trustedcoin/trustedcoin.py", line 338, in make_unsigned_transaction
    tx = mk_tx(outputs)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/plugins/trustedcoin/trustedcoin.py", line 328, in <lambda>
    self, coins=coins, outputs=o, fee=fee, change_addr=change_addr, rbf=rbf)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/wallet.py", line 1413, in make_unsigned_transaction
    tx.locktime = get_locktime_for_new_transaction(self.network)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/wallet.py", line 216, in get_locktime_for_new_transaction
    if chain.is_tip_stale():
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/blockchain.py", line 484, in is_tip_stale
    header = self.header_at_tip()
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/blockchain.py", line 480, in header_at_tip
    return self.read_header(height)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/util.py", line 1150, in func_wrapper
    return func(self, *args, **kwargs)
  File "/tmp/.mount_electrflogPV/usr/lib/python3.7/site-packages/electrum/blockchain.py", line 472, in read_header
    raise Exception('Expected to read a full header. This was only {} bytes'.format(len(h)))
Exception: Expected to read a full header. This was only 0 bytes