Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (38 sloc) 1.89 KB
// Copyright (c) 2018 The VeChainThor developers
// Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying
// file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html>
package thor
import (
"math/big"
"time"
"github.com/ethereum/go-ethereum/params"
)
// Constants of block chain.
const (
BlockInterval uint64 = 10 // time interval between two consecutive blocks.
TxGas uint64 = 5000
ClauseGas uint64 = params.TxGas - TxGas
ClauseGasContractCreation uint64 = params.TxGasContractCreation - TxGas
MinGasLimit uint64 = 1000 * 1000
InitialGasLimit uint64 = 10 * 1000 * 1000 // InitialGasLimit gas limit value int genesis block.
GasLimitBoundDivisor uint64 = 1024 // from ethereum
GetBalanceGas uint64 = 400 //EIP158 gas table
SloadGas uint64 = 200 // EIP158 gas table
SstoreSetGas uint64 = params.SstoreSetGas
SstoreResetGas uint64 = params.SstoreResetGas
MaxTxWorkDelay uint32 = 30 // (unit: block) if tx delay exceeds this value, no energy can be exchanged.
MaxBlockProposers uint64 = 101
TolerableBlockPackingTime = 500 * time.Millisecond // the indicator to adjust target block gas limit
MaxBackTrackingBlockNumber = 65535
)
// Keys of governance params.
var (
KeyExecutorAddress = BytesToBytes32([]byte("executor"))
KeyRewardRatio = BytesToBytes32([]byte("reward-ratio"))
KeyBaseGasPrice = BytesToBytes32([]byte("base-gas-price"))
KeyProposerEndorsement = BytesToBytes32([]byte("proposer-endorsement"))
InitialRewardRatio = big.NewInt(3e17) // 30%
InitialBaseGasPrice = big.NewInt(1e15)
InitialProposerEndorsement = new(big.Int).Mul(big.NewInt(1e18), big.NewInt(25000000))
EnergyGrowthRate = big.NewInt(5000000000) // WEI THOR per token(VET) per second. about 0.000432 THOR per token per day.
)
You can’t perform that action at this time.