ts-sdk icon indicating copy to clipboard operation
ts-sdk copied to clipboard

[BUG] - ARC Broadcast should return status error when a double spend is detected.

Open BraydenLangley opened this issue 1 year ago • 1 comments

Bug Description

As described in this PR by @sirdeggen, "orphan should not be considered success. So we ought to go back and make sure the ARC client is making good decisions about whether or not a tx is considered successfully broadcast."

Steps to Reproduce

  1. Create a new transaction that consumes an already spent output.
  2. Broadcast the transaction to ARC.
  3. The status returned, last tested, says "success" instead of "error".

Expected Behavior

In order to correctly identify broadcast errors using the isBroadcastFailure function, the ARC broadcaster should correctly return errors with status of "error" for all common errors that need to be handled.

BraydenLangley avatar Jul 09 '24 00:07 BraydenLangley