Open daywalker90 opened 1 year ago
to be clear, the restarting is obviously done by systemd, but the node cannot be started until this is fixed :/
I asked chatgpt to help me undestand the c code and i think the related code is here: https://github.com/ElementsProject/lightning/blob/master/wallet/wallet.c#L4658 and with my earlier issue here: https://github.com/ElementsProject/lightning/issues/6260 i think this is what happened: I had a fake? forward with an enormous fee (i remember my fees_collected starting with 18 and being higher that the 21m btc limit, so maybe it was close to the max of u64) and now the deleted forward fees went over the max of u64.
I then ran:
SELECT CAST(COALESCE(SUM(in_msatoshi - out_msatoshi), 0) AS BIGINT) FROM forwards WHERE state = 1;
which returned:
coalesce
-----------
516150999
(1 row)
and:
SELECT intval FROM vars WHERE name = 'deleted_forward_fees' LIMIT 1;
which returned:
intval
------------
-515655022
(1 row)
Now to be practical and get my node back up can i run:
UPDATE vars SET intval = 0 WHERE name = 'deleted_forward_fees';
?
I went ahead and ran that command to set deleted_forward_fees
back to 0
. Node is back up :)
My mainnet node is in a restart loop because of this:
running cln 23.08.1, debian 12