@@ -211,7 +211,7 @@ func TestSubmitter_setNodeHeightToDAHeight_Errors(t *testing.T) {
211211 h , d := newHeaderAndData ("chain" , 1 , true )
212212
213213 // No cache entries -> expect error on missing header
214- _ , ok := cm .GetHeaderDAIncluded (h .Hash ().String ())
214+ _ , ok := cm .GetHeaderDAIncludedByHash (h .Hash ().String ())
215215 assert .False (t , ok )
216216 assert .Error (t , s .setNodeHeightToDAHeight (ctx , 1 , d , false ))
217217
@@ -537,10 +537,10 @@ func TestSubmitter_CacheClearedOnHeightInclusion(t *testing.T) {
537537 assert .False (t , cm .IsDataSeen (d2 .DACommitment ().String ()), "height 2 data should be cleared from cache" )
538538
539539 // Verify DA inclusion status is removed for processed heights (cleaned up after finalization)
540- _ , h1DAIncluded := cm .GetHeaderDAIncluded (h1 .Hash ().String ())
541- _ , d1DAIncluded := cm .GetDataDAIncluded (d1 .DACommitment ().String ())
542- _ , h2DAIncluded := cm .GetHeaderDAIncluded (h2 .Hash ().String ())
543- _ , d2DAIncluded := cm .GetDataDAIncluded (d2 .DACommitment ().String ())
540+ _ , h1DAIncluded := cm .GetHeaderDAIncludedByHash (h1 .Hash ().String ())
541+ _ , d1DAIncluded := cm .GetDataDAIncludedByHash (d1 .DACommitment ().String ())
542+ _ , h2DAIncluded := cm .GetHeaderDAIncludedByHash (h2 .Hash ().String ())
543+ _ , d2DAIncluded := cm .GetDataDAIncludedByHash (d2 .DACommitment ().String ())
544544 assert .False (t , h1DAIncluded , "height 1 header DA inclusion status should be removed after finalization" )
545545 assert .False (t , d1DAIncluded , "height 1 data DA inclusion status should be removed after finalization" )
546546 assert .False (t , h2DAIncluded , "height 2 header DA inclusion status should be removed after finalization" )
@@ -551,8 +551,8 @@ func TestSubmitter_CacheClearedOnHeightInclusion(t *testing.T) {
551551 assert .True (t , cm .IsDataSeen (d3 .DACommitment ().String ()), "height 3 data should remain in cache" )
552552
553553 // Verify height 3 has no DA inclusion status since it wasn't processed
554- _ , h3DAIncluded := cm .GetHeaderDAIncluded (h3 .Hash ().String ())
555- _ , d3DAIncluded := cm .GetDataDAIncluded (d3 .DACommitment ().String ())
554+ _ , h3DAIncluded := cm .GetHeaderDAIncludedByHash (h3 .Hash ().String ())
555+ _ , d3DAIncluded := cm .GetDataDAIncludedByHash (d3 .DACommitment ().String ())
556556 assert .False (t , h3DAIncluded , "height 3 header should not have DA inclusion status" )
557557 assert .False (t , d3DAIncluded , "height 3 data should not have DA inclusion status" )
558558}
@@ -645,7 +645,7 @@ func TestSubmitter_IsHeightDAIncluded_AfterRestart(t *testing.T) {
645645 // ── Step 3: check IsHeightDAIncluded BEFORE DA retriever re-fires ─────────
646646 // Height 3 is in-flight: above daIncludedHeight (2) so we can't short-circuit.
647647 // The real hashes are NOT in cm2 yet — only the snapshot placeholders are.
648- _ , realHeaderFound := cm2 .GetHeaderDAIncluded (h3 .Hash ().String ())
648+ _ , realHeaderFound := cm2 .GetHeaderDAIncludedByHash (h3 .Hash ().String ())
649649 assert .False (t , realHeaderFound , "real hash must not be present before DA retriever re-fires" )
650650
651651 included , err := s .IsHeightDAIncluded (3 , d3 )
@@ -658,7 +658,7 @@ func TestSubmitter_IsHeightDAIncluded_AfterRestart(t *testing.T) {
658658 cm2 .SetHeaderDAIncluded (h3 .Hash ().String (), 12 , 3 )
659659 cm2 .SetDataDAIncluded (d3 .DACommitment ().String (), 12 , 3 )
660660
661- _ , realHeaderFound = cm2 .GetHeaderDAIncluded (h3 .Hash ().String ())
661+ _ , realHeaderFound = cm2 .GetHeaderDAIncludedByHash (h3 .Hash ().String ())
662662 assert .True (t , realHeaderFound , "real hash must be present after DA retriever re-fires" )
663663
664664 included , err = s .IsHeightDAIncluded (3 , d3 )
@@ -715,8 +715,8 @@ func TestSubmitter_setNodeHeightToDAHeight_AfterRestart(t *testing.T) {
715715 require .NoError (t , err )
716716
717717 // Confirm the real content hashes are NOT present after restore.
718- _ , realHdrFound := cm2 .GetHeaderDAIncluded (h3 .Hash ().String ())
719- _ , realDataFound := cm2 .GetDataDAIncluded (d3 .DACommitment ().String ())
718+ _ , realHdrFound := cm2 .GetHeaderDAIncludedByHash (h3 .Hash ().String ())
719+ _ , realDataFound := cm2 .GetDataDAIncludedByHash (d3 .DACommitment ().String ())
720720 require .False (t , realHdrFound , "real header hash must not be in cache before DA retriever re-fires" )
721721 require .False (t , realDataFound , "real data hash must not be in cache before DA retriever re-fires" )
722722
@@ -732,7 +732,7 @@ func TestSubmitter_setNodeHeightToDAHeight_AfterRestart(t *testing.T) {
732732 }
733733
734734 // ── Step 3: call setNodeHeightToDAHeight — must succeed via fallback ──────
735- // Before this fix, GetHeaderDAIncluded (realHash) would miss and the function
735+ // Before this fix, GetHeaderDAIncludedByHash (realHash) would miss and the function
736736 // would return an error, stalling processDAInclusionLoop.
737737 err = s .setNodeHeightToDAHeight (ctx , 3 , d3 , false )
738738 require .NoError (t , err ,
0 commit comments