Traceback (most recent call last):
  File "/tmp/.mount_electrDtC6mZ/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_electrDtC6mZ/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_electrDtC6mZ/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_electrDtC6mZ/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_electrDtC6mZ/usr/lib/python3.7/site-packages/electrum/gui/qt/util.py", line 344, in __init__
    task()
  File "/tmp/.mount_electrDtC6mZ/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_electrDtC6mZ/usr/lib/python3.7/site-packages/electrum/gui/qt/main_window.py", line 1709, in <lambda>
    is_sweep=is_sweep)
  File "/tmp/.mount_electrDtC6mZ/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_electrDtC6mZ/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_electrDtC6mZ/usr/lib/python3.7/site-packages/electrum/blockchain.py", line 484, in is_tip_stale
    header = self.header_at_tip()
  File "/tmp/.mount_electrDtC6mZ/usr/lib/python3.7/site-packages/electrum/blockchain.py", line 480, in header_at_tip
    return self.read_header(height)
  File "/tmp/.mount_electrDtC6mZ/usr/lib/python3.7/site-packages/electrum/util.py", line 1150, in func_wrapper
    return func(self, *args, **kwargs)
  File "/tmp/.mount_electrDtC6mZ/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