@@ -82,6 +82,7 @@ pub enum ConfigParam {
8282    AddCommitteeId ( CommitteeId ) , 
8383    RemoveCommitteeId ( CommitteeId ) , 
8484    PerVoteCertificateFees ( PerVoteCertificateFee ) , 
85+     TransactionMaxExpiryEpochs ( u8 ) , 
8586} 
8687
8788#[ derive( Clone ,  Debug ,  Eq ,  PartialEq ) ]  
@@ -153,6 +154,8 @@ pub enum Tag {
153154    RemoveCommitteeId  = 27 , 
154155    #[ strum( to_string = "per-vote-certificate-fees" ) ]  
155156    PerVoteCertificateFees  = 28 , 
157+     #[ strum( to_string = "transaction-maximum-expiry-epochs" ) ]  
158+     TransactionMaxExpiryEpochs  = 29 , 
156159} 
157160
158161impl  Tag  { 
@@ -183,6 +186,7 @@ impl Tag {
183186            26  => Some ( Tag :: AddCommitteeId ) , 
184187            27  => Some ( Tag :: RemoveCommitteeId ) , 
185188            28  => Some ( Tag :: PerVoteCertificateFees ) , 
189+             29  => Some ( Tag :: TransactionMaxExpiryEpochs ) , 
186190            _ => None , 
187191        } 
188192    } 
@@ -218,6 +222,7 @@ impl<'a> From<&'a ConfigParam> for Tag {
218222            ConfigParam :: AddCommitteeId ( ..)  => Tag :: AddCommitteeId , 
219223            ConfigParam :: RemoveCommitteeId ( ..)  => Tag :: RemoveCommitteeId , 
220224            ConfigParam :: PerVoteCertificateFees ( ..)  => Tag :: PerVoteCertificateFees , 
225+             ConfigParam :: TransactionMaxExpiryEpochs ( ..)  => Tag :: TransactionMaxExpiryEpochs , 
221226        } 
222227    } 
223228} 
@@ -298,6 +303,9 @@ impl Readable for ConfigParam {
298303            Tag :: PerVoteCertificateFees  => { 
299304                ConfigParamVariant :: from_payload ( bytes) . map ( ConfigParam :: PerVoteCertificateFees ) 
300305            } 
306+             Tag :: TransactionMaxExpiryEpochs  => { 
307+                 ConfigParamVariant :: from_payload ( bytes) . map ( ConfigParam :: TransactionMaxExpiryEpochs ) 
308+             } 
301309        } 
302310        . map_err ( Into :: into) 
303311    } 
@@ -334,6 +342,7 @@ impl property::Serialize for ConfigParam {
334342            ConfigParam :: AddCommitteeId ( data)  => data. to_payload ( ) , 
335343            ConfigParam :: RemoveCommitteeId ( data)  => data. to_payload ( ) , 
336344            ConfigParam :: PerVoteCertificateFees ( data)  => data. to_payload ( ) , 
345+             ConfigParam :: TransactionMaxExpiryEpochs ( data)  => data. to_payload ( ) , 
337346        } ; 
338347        let  taglen = TagLen :: new ( tag,  bytes. len ( ) ) . ok_or_else ( || { 
339348            io:: Error :: new ( 
@@ -858,7 +867,7 @@ mod test {
858867
859868    impl  Arbitrary  for  ConfigParam  { 
860869        fn  arbitrary < G :  Gen > ( g :  & mut  G )  -> Self  { 
861-             match  u8:: arbitrary ( g)  % 29  { 
870+             match  u8:: arbitrary ( g)  % 30  { 
862871                0  => ConfigParam :: Block0Date ( Arbitrary :: arbitrary ( g) ) , 
863872                1  => ConfigParam :: Discrimination ( Arbitrary :: arbitrary ( g) ) , 
864873                2  => ConfigParam :: ConsensusVersion ( Arbitrary :: arbitrary ( g) ) , 
@@ -888,6 +897,7 @@ mod test {
888897                26  => ConfigParam :: AddCommitteeId ( Arbitrary :: arbitrary ( g) ) , 
889898                27  => ConfigParam :: RemoveCommitteeId ( Arbitrary :: arbitrary ( g) ) , 
890899                28  => ConfigParam :: PerCertificateFees ( Arbitrary :: arbitrary ( g) ) , 
900+                 29  => ConfigParam :: TransactionMaxExpiryEpochs ( Arbitrary :: arbitrary ( g) ) , 
891901                _ => unreachable ! ( ) , 
892902            } 
893903        } 
0 commit comments