Skip to content

errors: classify common tapd failures#149

Draft
darioAnongba wants to merge 1 commit into
mainfrom
classify-tapd-errors
Draft

errors: classify common tapd failures#149
darioAnongba wants to merge 1 commit into
mainfrom
classify-tapd-errors

Conversation

@darioAnongba

@darioAnongba darioAnongba commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds ErrFeeRateTooLow and FeeRateTooLowError for tapd fee-floor rejections with requested/minimum sat/kw values.
  • Adds ErrInsufficientAnchorFunds for on-chain wallet funding shortfalls in anchor and issuance flows.
  • Maps gRPC Unavailable plus common tapd message fragments to SDK sentinels for backend unavailability, active mint batches, non-issuable asset refs, and missing external issuance signing requests.
  • Extends error normalization tests for errors.Is / errors.As behavior.

Refs #131

Test Plan

  • gofmt -w errors.go errors_test.go
  • python3 line-length check for errors.go and errors_test.go
  • git diff --check
  • go test . ./grpc ./rest
  • go test ./...
  • go test -tags=itest -run '^$' ./itest/...

Not run:

  • make lint (Docker daemon unavailable from the Umbrel Hermes container)
  • Full regtest stack (Docker daemon unavailable)

@darioAnongba darioAnongba force-pushed the classify-tapd-errors branch from f9ed2f2 to 3b3a66a Compare June 6, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

1 participant