Node icon indicating copy to clipboard operation
Node copied to clipboard

Teach the `PendingPayableScanner` on pending payble management

Open bertllll opened this issue 8 months ago • 1 comments

fill me in later

bertllll avatar May 27 '25 22:05 bertllll

The PendingTooLong issue

Use caching of those transactions that end with this failure result so that you can have a structured list of the txs that you are obliged to doublecheck.

The steps should be: a) rewrite the newer (successor) record in sent_payable with the nonce N by the data of the older transaction, now read from the failed_payable table. I say rewrite because I want to avoid the db state inconsistency precisely, That means, I'd like to have a single method to call, which will internally perform: the old row deletion + insertion of the new row, but committed no earlier than both of them done. I say we should use an explicit rusqlite tx, that gives you the control over when it is committed. However, you may be able to work it around by writing an UPDATE sql which will update the whole row though (every valuei in the row.) I wonder if that is considered a hack in the community of the data-engineers? (According to the ChatGPT, it isn't a nonsense. I'd then highly recommend that as it is much simpler to implement) b) delete the record from failed_payble

bertllll avatar Jun 08 '25 23:06 bertllll