Documentation ¶
Index ¶
Constants ¶
View Source
const ( // define the Max transaction size and Max block size MaxTxSize = uint64(1048576) MaxBlockSzie = uint64(10485760) //config parameter for coinbase reward CoinbasePendingBlockNumber = uint64(6) InitialBlockSubsidy = uint64(1470000000000000000) // config for pow mining PowMinBits = uint64(2161727821138738707) BlocksPerRetarget = uint64(1024) TargetSecondsPerBlock = uint64(60) // MaxTimeOffsetSeconds is the maximum number of seconds a block time is allowed to be ahead of the current time MaxTimeOffsetSeconds = uint64(60 * 60) PayToWitnessPubKeyHashDataSize = 20 PayToWitnessScriptHashDataSize = 32 CoinbaseArbitrarySizeLimit = 128 )
consensus variables
Variables ¶
View Source
var BTMAlias = "btm"
BTMAlias is default btm
View Source
var BTMAssetID = &bc.AssetID{ V0: uint64(18446744073709551615), V1: uint64(18446744073709551615), V2: uint64(18446744073709551615), V3: uint64(18446744073709551615), }
BTMAssetID is BTM's asset id, the soul asset of Bytom
View Source
var BTMDecimals = 8
BTMDecimals
View Source
var BTMDefinitionMap = map[string]interface{}{ "name": BTMAlias, "symbol": BTMSymbol, "decimals": BTMDecimals, "description": BTMDescription, }
BTMDefinitionMap
View Source
var BTMDescription = `Bytom Official Issue`
BTMDescription
View Source
var BTMSymbol = "btm"
BTMSymbol
View Source
var MainNetParams = Params{
Name: "main",
Bech32HRPSegwit: "bm",
}
MainNetParams is the config for production
View Source
var TestNetParams = Params{
Name: "test",
Bech32HRPSegwit: "tm",
}
TestNetParams is the config for test-net
Functions ¶
func BlockSubsidy ¶
BlockSubsidy calculate the coinbase rewards on given block height
func IsBech32SegwitPrefix ¶ added in v0.1.4
IsBech32SegwitPrefix returns whether the prefix is a known prefix for segwit addresses on any default or registered network. This is used when decoding an address string into a specific address type.
Types ¶
Click to show internal directories.
Click to hide internal directories.