Skip to content

Commit aa9027c

Browse files
committed
set da sync in test
1 parent a8754d4 commit aa9027c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

block/internal/syncing/syncer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func TestSequentialBlockSync(t *testing.T) {
159159
// Expect ExecuteTxs call for height 1
160160
mockExec.EXPECT().ExecuteTxs(mock.Anything, mock.Anything, uint64(1), mock.Anything, st0.AppHash).
161161
Return([]byte("app1"), uint64(1024), nil).Once()
162-
evt1 := common.DAHeightEvent{Header: hdr1, Data: data1, DaHeight: 10}
162+
evt1 := common.DAHeightEvent{Header: hdr1, Data: data1, DaHeight: 10, HeaderDaIncludedHeight: 10}
163163
s.processHeightEvent(&evt1)
164164

165165
st1, _ := st.GetState(context.Background())
@@ -168,7 +168,7 @@ func TestSequentialBlockSync(t *testing.T) {
168168
// Expect ExecuteTxs call for height 2
169169
mockExec.EXPECT().ExecuteTxs(mock.Anything, mock.Anything, uint64(2), mock.Anything, st1.AppHash).
170170
Return([]byte("app2"), uint64(1024), nil).Once()
171-
evt2 := common.DAHeightEvent{Header: hdr2, Data: data2, DaHeight: 11}
171+
evt2 := common.DAHeightEvent{Header: hdr2, Data: data2, DaHeight: 11, HeaderDaIncludedHeight: 11}
172172
s.processHeightEvent(&evt2)
173173

174174
// Mark DA inclusion in cache (as DA retrieval would)

0 commit comments

Comments
 (0)