You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ttx): remove context.Context field from Transaction struct
Transaction stored a context.Context captured once at construction,
so methods reached for t.Context instead of taking a context from
their caller. A transaction rebuilt via NewTransactionFromBytes in a
different view kept the originating view's context, and
htlc.Transaction.Lock already accepted ctx but silently used t.Context
instead, dropping the caller's deadline/cancellation/tracing context.
Bytes, Issue, Transfer, Redeem, Upgrade, Outputs, and Inputs now take
ctx explicitly, threaded through every call site in token/ and
integration/.
Also enables the containedctx linter and suppresses the pattern's
remaining, reviewed occurrences (long-lived service/worker lifecycles,
a per-event struct, session-wrapper convenience defaults, and a test
fake) with a justification comment each.
Fixes#2178Fixes#2179
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Uses an **Initiator-Responder Inversion** pattern. The user requests a withdrawal, and the Issuer (responder) becomes the initiator of the Token Transaction to issue the tokens.
0 commit comments