Skip to content

Commit

Permalink
fix(settlement): filter by pending status in batch event (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
srene authored and omritoptix committed May 18, 2024
1 parent 3e89a94 commit 45f9216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -190,7 +190,7 @@ func TestPostBatch(t *testing.T) {
if c.isBatchAcceptedHubEvent {
time.Sleep(100 * time.Millisecond)
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

0 comments on commit 45f9216

Please sign in to comment.