4 "github.com/bytom/protocol/bc"
8 // define the Max transaction size and Max block size
9 MaxTxSize = uint64(1024)
10 MaxBlockSzie = uint64(16384)
12 //config parameter for coinbase reward
13 subsidyReductionInterval = uint64(560640)
14 baseSubsidy = uint64(624000000000)
15 initialBlockSubsidy = uint64(1470000000000000000)
17 // config for pow mining
18 powMinBits = uint64(2161727821138738707)
19 BlocksPerRetarget = uint64(1024)
20 targetSecondsPerBlock = uint64(60)
23 // define the BTM asset id, the soul asset of Bytom
24 var BTMAssetID = &bc.AssetID{
25 V0: uint64(18446744073709551615),
26 V1: uint64(18446744073709551615),
27 V2: uint64(18446744073709551615),
28 V3: uint64(18446744073709551615),
31 func BlockSubsidy(height uint64) uint64 {
33 return initialBlockSubsidy
35 return baseSubsidy >> uint(height/subsidyReductionInterval)
38 func InitBlock() []byte {
39 return []byte("0301000000000000000000000000000000000000000000000000000000000000000000ece090e7eb2b4078a79ed5c640a026361c4af77a37342e503cc68493229996e11dd9be38b18f5b492159980684155da19e87de0d1b37b35c1a1123770ec1dcc710aabe77607cce00b1c5a181808080802e0107010700ece090e7eb2b000001012cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8080ccdee2a69fb314010151000000")