@@ -26,7 +26,8 @@ func TestCodecFromVersion(t *testing.T) {
2626 {"CodecV7" , CodecV7 , & DACodecV7 {}, false },
2727 {"CodecV8" , CodecV8 , & DACodecV8 {}, false },
2828 {"CodecV9" , CodecV9 , & DACodecV9 {}, false },
29- {"CodecV10" , CodecVersion (10 ), nil , true }, // not defined yet
29+ {"CodecV10" , CodecV10 , & DACodecV10 {}, false },
30+ {"CodecV11" , CodecVersion (11 ), nil , true }, // not defined yet
3031 {"InvalidCodec" , CodecVersion (99 ), nil , true },
3132 }
3233
@@ -52,6 +53,23 @@ func TestCodecFromConfig(t *testing.T) {
5253 want Codec
5354 }{
5455 {
56+ name : "GalileoV2 active" ,
57+ config : & params.ChainConfig {
58+ LondonBlock : big .NewInt (0 ),
59+ BernoulliBlock : big .NewInt (0 ),
60+ CurieBlock : big .NewInt (0 ),
61+ DarwinTime : new (uint64 ),
62+ DarwinV2Time : new (uint64 ),
63+ EuclidTime : new (uint64 ),
64+ EuclidV2Time : new (uint64 ),
65+ FeynmanTime : new (uint64 ),
66+ GalileoTime : new (uint64 ),
67+ GalileoV2Time : new (uint64 ),
68+ },
69+ blockNum : big .NewInt (0 ),
70+ timestamp : 0 ,
71+ want : & DACodecV10 {},
72+ }, {
5573 name : "Galileo active" ,
5674 config : & params.ChainConfig {
5775 LondonBlock : big .NewInt (0 ),
0 commit comments