Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(settlement): filter by pending status in batch event #845

Merged
merged 2 commits into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion settlement/dymension/dymension.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
)

const (
eventStateUpdate = "state_update.rollapp_id='%s'"
eventStateUpdate = "state_update.rollapp_id='%s' AND state_update.status='PENDING'"
eventSequencersListUpdate = "sequencers_list_update.rollapp_id='%s'"
)

Expand Down
2 changes: 1 addition & 1 deletion settlement/dymension/dymension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func TestPostBatch(t *testing.T) {
time.Sleep(50 * time.Millisecond)
if c.isBatchAcceptedHubEvent {
batchAcceptedCh <- coretypes.ResultEvent{
Query: fmt.Sprintf("state_update.rollapp_id='%s'", ""),
Query: fmt.Sprintf("state_update.rollapp_id='%s' AND state_update.status='PENDING'", ""),
Events: map[string][]string{
"state_update.num_blocks": {"1"},
"state_update.start_height": {"1"},
Expand Down
Loading