I used Electrum with my notebook but now I got a reason to believe my wallet was compromised since I got a trojan.
You need to check things you need for backups on your notebook. After finish with backup, it's time for you to clean up your notebook, install the OS on it.
I sold some items in person to a friend and he send me the money in Bitcoin at a time when I did not notice my wallet have may been compromised. The transaction is arround a few thousand dollars but this is a low fee transaction so I have a little bit of time to find a fast solution.
If the trade of you and your friend, is in few thousands of dollar, you need to get a confirmation to finish the trade so low transaction fee is not good. It can be reason for scam with double spend.
The Bitcoin he was sending me goes straight to my compromised wallet and as the Blockchain explorer expects it arrives at a time where I am at work.
It can be confirmed anytime, depends on mempools and Bitcoin miners. Low fee rate transactions in mempools will have to wait longer than higher fee rate transactions but if mempools suddenly drop, you will see your transaction is confirmed faster than estimated time.
My transaction has been unconfirmed for a long time. What can I do?You can ask your friend to cancel it, double spend it.
Cancel the transaction. This is only possible for “replaceable” transactions. Electrum creates replaceable transactions by default, except for lightning channel open/close transactions. Transactions that are replaceable have “Replace by fee: True” in the transaction details screen. To cancel a replaceable transaction right click on its entry on the history tab and choose “Cancel (double-spend)”. Set an appropriate fee and click on “OK”. A window will popup with the unsigned transaction. Click on “Sign” and then “Broadcast”.