88 aggsendertypes "github.com/agglayer/aggkit/aggsender/types"
99 "github.com/agglayer/aggkit/config/types"
1010 "github.com/agglayer/aggkit/grpc"
11+ aggkittypes "github.com/agglayer/aggkit/types"
1112 "github.com/ethereum/go-ethereum/common"
1213 "github.com/stretchr/testify/require"
1314)
@@ -28,6 +29,7 @@ func TestValidatorConfigValidate(t *testing.T) {
2829 URL : "http://localhost:9090" ,
2930 MinConnectTimeout : types .NewDuration (5 * time .Second ),
3031 }},
32+ BlockFinalityForL1InfoTree : aggkittypes .FinalizedBlock ,
3133 },
3234 },
3335 {
@@ -41,6 +43,7 @@ func TestValidatorConfigValidate(t *testing.T) {
4143 URL : "http://localhost:9090" ,
4244 MinConnectTimeout : types .NewDuration (5 * time .Second ),
4345 }},
46+ BlockFinalityForL1InfoTree : aggkittypes .FinalizedBlock ,
4447 },
4548 },
4649 {
@@ -54,6 +57,7 @@ func TestValidatorConfigValidate(t *testing.T) {
5457 URL : "http://localhost:9090" ,
5558 MinConnectTimeout : types .NewDuration (5 * time .Second ),
5659 }},
60+ BlockFinalityForL1InfoTree : aggkittypes .FinalizedBlock ,
5761 },
5862 expectedErr : errInvalidSovereignRollupAddr .Error (),
5963 },
@@ -65,6 +69,7 @@ func TestValidatorConfigValidate(t *testing.T) {
6569 URL : "http://localhost:9090" ,
6670 MinConnectTimeout : types .NewDuration (5 * time .Second ),
6771 }},
72+ BlockFinalityForL1InfoTree : aggkittypes .FinalizedBlock ,
6873 },
6974 expectedErr : "invalid mode invalid-mode, must be one of" ,
7075 },
@@ -76,6 +81,7 @@ func TestValidatorConfigValidate(t *testing.T) {
7681 URL : "http://localhost:9090" ,
7782 MinConnectTimeout : types .NewDuration (5 * time .Second ),
7883 }},
84+ BlockFinalityForL1InfoTree : aggkittypes .FinalizedBlock ,
7985 },
8086 expectedErr : "invalid mode , must be one of" ,
8187 },
@@ -86,6 +92,7 @@ func TestValidatorConfigValidate(t *testing.T) {
8692 AgglayerClient : agglayer.ClientConfig {GRPC : & grpc.ClientConfig {
8793 URL : "" ,
8894 }},
95+ BlockFinalityForL1InfoTree : aggkittypes .FinalizedBlock ,
8996 },
9097 expectedErr : "invalid agglayer client config" ,
9198 },
0 commit comments