OSDN Git Service

Merge branch 'demo' of https://github.com/Bytom/bytom into demo
[bytom/bytom.git] / consensus / general.go
1 package consensus
2
3 import (
4         "github.com/bytom/protocol/bc"
5 )
6
7 const (
8         // define the Max transaction size and Max block size
9         MaxTxSize    = uint64(1024)
10         MaxBlockSzie = uint64(16384)
11
12         //config parameter for coinbase reward
13         subsidyReductionInterval = uint64(560640)
14         baseSubsidy              = uint64(624000000000)
15 )
16
17 // define the BTM asset id, the soul asset of Bytom
18 var BTMAssetID = &bc.AssetID{
19         V0: uint64(18446744073709551615),
20         V1: uint64(18446744073709551615),
21         V2: uint64(18446744073709551615),
22         V3: uint64(18446744073709551615),
23 }
24
25 func BlockSubsidy(height uint64) uint64 {
26         return baseSubsidy >> uint(height/subsidyReductionInterval)
27 }