Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Error handling submitting/cashing cheques #1635

Closed
@Eknir

Description

@Eknir

Currently, we only log an error when we can't submit / cash a cheque.
Getting an error from the blockchain can mean two things:

  1. sending the transaction to the blockchain failed
  2. the transaction was send to the blockchain, but triggered a revert (smart-contract condition)

In the first case, it can be due to some local configuration (i.e. private key not set, no connection with testnet).
In the second case, it is because the cheque was incorrectly formatted or the cheque was already submitted.

Handling the error should strive towards cashing the cheque if possible. If not possible, the amount of the cheque should be added back to the peer balance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions