swarm icon indicating copy to clipboard operation
swarm copied to clipboard

Peer shutting down while waiting for transaction: marking cheques as cashed

Open Eknir opened this issue 5 years ago • 3 comments

It is possible that the node shuts down, while it is waiting for a transaction to be executed. Perhaps we should keep a list of cheques and mark them as cashed / uncashed. Then, when the node boots up again, he verifies his uncashed cheques and if, according to his preferences (which is now: always cash a cheque directly), he wants to submit a cheque which is marked as not submitted, he will first look in the blockchain whether this cheque is really not submitted.

Eknir avatar Aug 02 '19 08:08 Eknir

Issue description should be updated to only refer to cashing.

ralph-pichler avatar Sep 02 '19 20:09 ralph-pichler

@ralph-pichler , what is the status on this PR?

Eknir avatar Feb 06 '20 11:02 Eknir

While implemented a bit differently, the general idea behind this will be implemented in #2089 (which will probably be split into smaller PRs).

If you want, we can also close this is in favour of #2005.

ralph-pichler avatar Feb 06 '20 11:02 ralph-pichler