File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
convex-core/src/test/java/convex/core/init Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import org .junit .jupiter .api .Test ;
8
8
9
+ import convex .core .Coin ;
9
10
import convex .core .cvm .State ;
10
11
11
12
public class GenesisTest {
@@ -14,5 +15,12 @@ public class GenesisTest {
14
15
public static void testGenesis () {
15
16
State genesis =Init .createState (Init .DEFAULT_GOV_KEY , Init .DEFAULT_GENESIS_KEY , List .of (Init .FIRST_PEER_KEY ));
16
17
assertEquals ("b0e44f2a645abfa539f5b96b7a0eabb0f902866feaff0f7c12d1213e02333f13" ,genesis .getHash ().toHexString ());
18
+
19
+ assertEquals (Init .FIRST_USER_KEY ,genesis .getAccount (13 ).getAccountKey ());
20
+
21
+ assertEquals (Coin .MAX_SUPPLY ,genesis .computeSupply ());
22
+
23
+ // Should be 128 reserved addresses plus two currencies and markets (USDF and GBPF)
24
+ assertEquals (132 ,genesis .getAccounts ().count ());
17
25
}
18
26
}
You can’t perform that action at this time.
0 commit comments