File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
main/java/convex/core/init
test/java/convex/core/init Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public class Init {
71
71
/**
72
72
* Number of coins issued at genesis (one million)
73
73
*/
74
- private static final long GENESIS_COINS =1000000 *Coin .GOLD ;
74
+ public static final long GENESIS_COINS =1000000 *Coin .GOLD ;
75
75
76
76
public static final AccountKey DEFAULT_GOV_KEY = AccountKey .fromHex ("12EF73ee900eD1FE78A188f59bF8CedE467bAA66f5b60368aFAaA3B9521aB94d" );
77
77
public static final AccountKey DEFAULT_GENESIS_KEY = AccountKey .fromHex ("c1d3b0104d55ddf7680181a46e93422e49e2ea9298e37794860f1ef1128427f7" );
Original file line number Diff line number Diff line change 12
12
public class GenesisTest {
13
13
14
14
@ Test
15
- public static void testGenesis () {
15
+ public void testGenesis () {
16
16
State genesis =Init .createState (Init .DEFAULT_GOV_KEY , Init .DEFAULT_GENESIS_KEY , List .of (Init .FIRST_PEER_KEY ));
17
- assertEquals ("b0e44f2a645abfa539f5b96b7a0eabb0f902866feaff0f7c12d1213e02333f13" ,genesis .getHash ().toHexString ());
17
+ // This changes because of updates to cvx files
18
+ // assertEquals("b0e44f2a645abfa539f5b96b7a0eabb0f902866feaff0f7c12d1213e02333f13",genesis.getHash().toHexString());
19
+ assertEquals ("15dce0fe6903633b4ed01aa4452d7250901d5a29cbf7f2c5916c97535ee948da" ,genesis .getHash ().toHexString ());
18
20
19
21
assertEquals (Init .FIRST_USER_KEY ,genesis .getAccount (13 ).getAccountKey ());
20
22
21
- assertEquals (Coin .MAX_SUPPLY ,genesis .computeSupply ());
23
+ assertEquals (Init .GENESIS_COINS ,genesis .computeSupply ()); // 1m CVM initially in genesis
24
+ assertEquals (Coin .MAX_SUPPLY ,genesis .computeTotalBalance ());
22
25
23
26
// Should be 128 reserved addresses plus two currencies and markets (USDF and GBPF)
24
27
assertEquals (132 ,genesis .getAccounts ().count ());
You can’t perform that action at this time.
0 commit comments