Intermittent error “min relay fee not met” even with decent fee and custom Electrumx+Bitcoind

I have an automated system that sends BTC payments via Electrum for a client. Now, it happens again and again that payments keep failing with “min relay fee not met” (RPC call failed: {“code”:-32603,”message”:”Server error: File \”/home/ubuntu/.local/lib/python3.6/site-packages/electrum/network.py\”, line 871, in broadcast_transaction | electrum.network.TxBroadcastServerReturnedError: min relay fee not met\n”}) for minutes or hours, and later it…

How to access Electrum remotely via the rest api?

I am able to execute calls on the server from the server. When I say calls, I mean like this. I.e. I can get the latest addresses doing something like this: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, “http://127.0.0.1:7777”); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, “{\”id\”:\”curltext\”,\”method\”:\”listaddresses\”}”); curl_setopt($ch, CURLOPT_POST, 1); $headers = array(); $headers[] = “Content-Type: application/x-www-form-urlencoded”; curl_setopt($ch, CURLOPT_HTTPHEADER,…

Can someone explain how an HTLC is redeemed?

I’m looking at Bolt 3 in the Lightning rfc. My question is about how a HTLC is redeemed. Example HTLC script for reference: # To remote node with revocation key OP_DUP OP_HASH160 <RIPEMD160(SHA256(revocationpubkey))> OP_EQUAL OP_IF OP_CHECKSIG OP_ELSE <remote_htlcpubkey> OP_SWAP OP_SIZE 32 OP_EQUAL OP_NOTIF # To local node via HTLC-timeout transaction (timelocked). OP_DROP 2 OP_SWAP <local_htlcpubkey>…