MathNodes / meile-gui

Meile dVPN GUI for Linux, OS X, and Windows - Powered by the Sentinel Network
https://meile.app
GNU General Public License v3.0
35 stars 6 forks source link

[BUG] Unsubscribe bug may cause unsubscribe function to not work on Linux #63

Open freQniK opened 7 months ago

freQniK commented 7 months ago

Screenshot_2023-12-01_23-17-05

I got this on Ubuntu 20.04 running v1.7.14. I tested the same code on another Ubunut 20.04 v1.7.14 and I was able to unsubscribe. Not sure where the disconnect is. I think this is related to the privkey retrieved from the key-ring dir but not I'm sure. Somewhere related to this stretch of code in src/cli/wallet.py

        wallet = LocalWallet(PrivateKey(priv_key_bytes), prefix="sent")
        address = wallet.address()

        print(f"Address: {address},\nSubscription ID: {subId}")

        try: 
            tx = Transaction()
            tx.add_message(MsgCancelRequest(frm=str(address), id=int(subId)))

            tx = prepare_and_broadcast_basic_transaction(client, tx, wallet)
            tx.wait_to_complete()

Posting this in case other people notice a similar message.