File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public enum Hardfork : byte
1717 HF_Basilisk ,
1818 HF_Cockatrice ,
1919 HF_Domovoi ,
20- HF_Echidna
20+ HF_Echidna ,
21+ HF_Faun
2122 }
2223}
Original file line number Diff line number Diff line change @@ -97,11 +97,11 @@ public void HardForkTestAAndNotB()
9797 [ TestMethod ]
9898 public void HardForkTestNone ( )
9999 {
100- string json = CreateHFSettings ( "" ) ;
101-
100+ var json = CreateHFSettings ( "" ) ;
102101 var file = Path . GetTempFileName ( ) ;
102+
103103 File . WriteAllText ( file , json ) ;
104- ProtocolSettings settings = ProtocolSettings . Load ( file ) ;
104+ var settings = ProtocolSettings . Load ( file ) ;
105105 File . Delete ( file ) ;
106106
107107 Assert . AreEqual ( ( uint ) 0 , settings . Hardforks [ Hardfork . HF_Aspidochelone ] ) ;
@@ -113,6 +113,7 @@ public void HardForkTestNone()
113113 Assert . IsTrue ( settings . IsHardforkEnabled ( Hardfork . HF_Aspidochelone , 10 ) ) ;
114114 Assert . IsTrue ( settings . IsHardforkEnabled ( Hardfork . HF_Basilisk , 0 ) ) ;
115115 Assert . IsTrue ( settings . IsHardforkEnabled ( Hardfork . HF_Basilisk , 10 ) ) ;
116+ Assert . IsTrue ( settings . IsHardforkEnabled ( Hardfork . HF_Faun , 10 ) ) ;
116117 }
117118
118119 [ TestMethod ]
You can’t perform that action at this time.
0 commit comments