Skip to content

Commit

Permalink
parameters are set to test colosseum, and base fee print
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire authored and gameofpointers committed Oct 14, 2024
1 parent 9f9ff83 commit f7ace9b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func DefaultColosseumGenesisBlock(consensusEngine string, genesisNonce uint64) *
Nonce: genesisNonce,
ExtraData: hexutil.MustDecode("0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fb"),
GasLimit: 5000000,
Difficulty: big.NewInt(1000000000),
Difficulty: big.NewInt(30000000000),
}
}

Expand Down
1 change: 1 addition & 0 deletions core/types/wo.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ func (wo *WorkObject) TransactionsInfo() map[string]interface{} {
txInfo["coinbaseEtxInbound"] = coinbaseInboundEtx
txInfo["conversionEtxOutbound"] = conversionOutboundEtx
txInfo["conversionEtxInbound"] = conversionInboundEtx
txInfo["baseFee"] = wo.BaseFee()
return txInfo
}

Expand Down
2 changes: 1 addition & 1 deletion params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
// Genesis hashes to enforce below configs on.
var (
// Progpow GenesisHashes
ProgpowColosseumGenesisHash = common.HexToHash("0x1ff6d28f14b993b75883c4611e8f9a8d157cd4e872e76f43c27c0bdfa0970069")
ProgpowColosseumGenesisHash = common.HexToHash("0x863406b0b535b316d4ae5a4d97336c0a015a36c0e5c055aa2e4461e9048b62c9")
ProgpowGardenGenesisHash = common.HexToHash("0xb610af2eef9d854d01510785b0171247cb221912124c74fcef888bbed42448bb")
ProgpowOrchardGenesisHash = common.HexToHash("0x863406b0b535b316d4ae5a4d97336c0a015a36c0e5c055aa2e4461e9048b62c9")
ProgpowLighthouseGenesisHash = common.HexToHash("0xf60de17f1ae6cbae820d14599eb95581f5c18799f84904520c264be9cfff64c4")
Expand Down
15 changes: 7 additions & 8 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,11 @@ var (
OrchardGasCeil uint64 = 30000000
LighthouseGasCeil uint64 = 30000000
LocalGasCeil uint64 = 30000000
DifficultyBoundDivisor = big.NewInt(2048) // The bound divisor of the difficulty, used in the update calculations.
DurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
GardenDurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
OrchardDurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
LighthouseDurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
LocalDurationLimit = big.NewInt(1) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
DurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
GardenDurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
OrchardDurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
LighthouseDurationLimit = big.NewInt(5) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
LocalDurationLimit = big.NewInt(1) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
TimeToStartTx uint64 = 100
BlocksPerDay uint64 = new(big.Int).Div(big.NewInt(86400), DurationLimit).Uint64() // BlocksPerDay is the number of blocks per day assuming 12 second block time
DifficultyAdjustmentPeriod = big.NewInt(720) // This is the number of blocks over which the average has to be taken
Expand All @@ -180,11 +179,11 @@ var (
WorkSharesInclusionDepth = 3 // Number of blocks upto which the work shares can be referenced and this is protocol enforced
LockupByteToBlockDepth = make(map[uint8]uint64)
LockupByteToRewardsRatio = make(map[uint8]*big.Int)
ExchangeRate = big.NewInt(73170731707317073) // This is the initial exchange rate in Qi per Quai in Its/Qit
ExchangeRate = big.NewInt(86196385918997143) // This is the initial exchange rate in Qi per Quai in Its/Qit // Garden = big.NewInt(166666666666666667)
// These numbers should be "equivalent" to the initial conversion rate
QuaiToQiConversionBase = big.NewInt(10000000) // UNUSED Is the starting "historical conversion" in Qits for 10,000 Quai we need 10,000*1e3
QiToQuaiConversionBase = big.NewInt(10000000) // UNUSED Is the starting "historical conversion" in Qits for 10,000 Qi we need 10,000*1e3
OneOverKqi = big.NewInt(3e12) // This is the number of hashes need to get 1 Qit. 3e9 is ~$0.001
OneOverKqi = big.NewInt(30000000) // This is the number of hashes need to get 1 Qit. 3e9 is ~$0.001 // = big.NewInt(500)
MaxTimeDiffBetweenBlocks int64 = 100 // Max time difference between the blocks to 100 secs
OneOverAlpha = big.NewInt(200) // The alpha value for the quai to qi conversion
ControllerKickInBlock uint64 = 1000000000
Expand Down

0 comments on commit f7ace9b

Please sign in to comment.