@@ -447,26 +447,25 @@ pub struct RavRequestConfig {
447447 pub max_receipts_per_request : u64 ,
448448}
449449
450- /// Horizon upgrade mode configuration
451- #[ derive( Debug , Clone , Deserialize , PartialEq , Default ) ]
452- #[ serde( rename_all = "lowercase" ) ]
453- pub enum HorizonMode {
454- /// Legacy mode: Only v1 TAP receipts supported
455- #[ default]
456- Legacy ,
457- /// Transition mode: Both v1 and v2 TAP receipts supported (for migration)
458- Transition ,
459- /// Full mode: Only v2 TAP receipts supported (post-migration)
460- Full ,
461- }
462-
463- /// Configuration for the horizon
464- /// standard
450+ /// Configuration for the horizon migration
465451#[ derive( Debug , Default , Deserialize ) ]
466452#[ cfg_attr( test, derive( PartialEq ) ) ]
467453pub struct HorizonConfig {
468- /// Horizon upgrade mode
469- pub mode : HorizonMode ,
454+ /// Enable Horizon migration support and detection
455+ ///
456+ /// When enabled (true):
457+ /// - System will check if Horizon contracts are active in the network
458+ /// - If Horizon contracts are detected: Enable hybrid migration mode
459+ /// * Accept new V2 TAP receipts only
460+ /// * Continue processing existing V1 receipts for RAV generation
461+ /// * Reject new V1 receipt submissions
462+ /// - If Horizon contracts are not detected: Remain in legacy mode
463+ ///
464+ /// When disabled (false):
465+ /// - Pure legacy mode, no Horizon detection performed
466+ /// - Only V1 TAP receipts are supported
467+ #[ serde( default ) ]
468+ pub enabled : bool ,
470469}
471470
472471#[ cfg( test) ]
0 commit comments