Open
Conversation
1. AtomicProvider now reactively subscribes to rpcConfigStore so changing custom RPC URLs triggers a rerender and polling uses fresh URLs. 2. HTLCClient.getSolverLockDetails restored cross-node agreement check: queries all nodes in parallel and requires matching lock details before accepting, preventing false lock detection from stale/faulty nodes. 3. TON client now respects network-aware RPC configuration: createTonClient(network) is called by getTONDetails and commitTransactionBuilder instead of using a hardcoded singleton. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Updated AtomicProvider to include destinationRedeemTx in the htlcStatus calculation for improved accuracy. - Replaced NodeResolver class with a standalone resolveNodes function for better clarity and performance in resolving RPC nodes. - Enhanced useSolverLockPolling to implement consensus verification across multiple nodes, ensuring consistent lock details are returned. - Added validation for custom RPC URLs in the rpcConfigStore to prevent invalid URLs from being used. These changes improve the reliability and maintainability of the RPC handling and polling mechanisms.
…ication in useSolverLockPolling - Adjusted the timeout duration in AtomicProvider from 3 minutes to 2 minutes for manual claim requirements. - Added useEffect in useSolverLockPolling to reset consensus verification state when hashlock changes, improving polling accuracy. These changes enhance the responsiveness and reliability of the HTLC handling logic.
…tion effect - Modified the useEffect in useSolverLockPolling to reset consensus verification state when both hashlock and nodeUrls change, improving the accuracy of polling behavior. This change enhances the responsiveness of the HTLC handling logic by ensuring that the polling mechanism reacts to updates in node URLs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements network-aware RPC resolution with critical bug fixes for atomic swap polling and lock verification.
Three critical fixes:
Dynamic RPC infrastructure:
🤖 Generated with Claude Code