Skip to content

Commit a00d75c

Browse files
committed
cortex init supply
1 parent 40f05b2 commit a00d75c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

consensus/cuckoo/consensus.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,10 @@ func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header
685685
blockReward = ConstantinopleBlockReward
686686
}*/
687687

688+
if header.Supply.Cmp(params.CTXC_INIT) < 0 {
689+
header.Supply = params.CTXC_INIT
690+
}
691+
688692
if header.Supply.Cmp(params.CTXC_TOP) >= 0 {
689693
blockReward = big0
690694
header.Supply = params.CTXC_TOP

genesis.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
22
"config": {
3-
"chainId": 14,
3+
"chainId": 1,
44
"homesteadBlock": 0,
55
"eip155Block": 0,
66
"eip158Block": 0
77
},
8-
"alloc" : {},
98
"coinbase" : "0x0000000000000000000000000000000000000000",
109
"difficulty" : "0x20",
1110
"extraData" : "",
1211
"gasLimit" : "0x2fefd8",
1312
"nonce" : "0x0000000000000042",
1413
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
1514
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
16-
"timestamp" : "0x00"
15+
"timestamp" : "0x00",
16+
"alloc" : {
17+
"0x0000000000000000000000000000000000000001": {"balance": "149792458000000000000000000"}
18+
}
1719
}

params/protocol_params.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ var (
9191
DurationLimit = big.NewInt(13) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
9292

9393
CTXC_TOP = big.NewInt(0).Mul(big.NewInt(299792458), big.NewInt(1000000000000000000))
94+
CTXC_INIT = big.NewInt(0).Mul(big.NewInt(149792458), big.NewInt(1000000000000000000))
95+
CTXC_MINING = big.NewInt(0).Mul(big.NewInt(150000000), big.NewInt(1000000000000000000))
9496
)
9597

9698
const (

0 commit comments

Comments
 (0)