Skip to content

Improves/pending deposit - #140

Open
hundredark wants to merge 12 commits into
mainfrom
improves/pending-deposit
Open

hundredark wants to merge 12 commits into
mainfrom
improves/pending-deposit

Conversation

@hundredark

Copy link
Copy Markdown
Collaborator

No description provided.

@cedricfung
cedricfung marked this pull request as ready for review October 19, 2026 16:38
@cedricfung
cedricfung requested a balanced review from Copilot October 19, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Advancing checkpoints through unfinalized blocks without reorg recovery can permanently miss replacement-block deposits.

1 open issue
What changed in this PR

This PR enables earlier pending-deposit discovery by scanning through the latest block rather than waiting for finalization.

Changes:

  • Removes finalization-delay gates from both block scanners.
  • Stops scanning when checkpoints reach the current chain height.
File Description
observer/​ethereum.go Enables tip scanning for Ethereum and Polygon deposits.
observer/​bitcoin.go Enables tip scanning for Bitcoin and Litecoin deposits.

Review effort: Balanced

Comment thread observer/ethereum.go Outdated
for range batch {
ckpt := checkpoint + 1
if ckpt+delay > int64(height)+1 {
if ckpt > height {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants