Official Go implementation of the Bytom protocol
修订版 | e32248c87005893a1c4fda9583195d239a5d7388 (tree) |
---|---|
时间 | 2021-04-15 22:29:38 |
作者 | mingjingc <2595400537@qq.c...> |
Commiter | mingjingc |
remove config
@@ -77,23 +77,13 @@ func IsBech32SegwitPrefix(prefix string, params *Params) bool { | ||
77 | 77 | // BasicConfig indicate the basic config |
78 | 78 | type BasicConfig struct { |
79 | 79 | // gas config |
80 | - MaxBlockGas uint64 // the max used gas for all transactions of a block | |
81 | - MaxGasAmount int64 // the max gas for a transaction | |
82 | - DefaultGasCredit int64 // the max default credit gas for a transaction with non-BTM asset | |
83 | - VMGasRate int64 // the gas rate for VM | |
84 | - StorageGasRate int64 // the gas rate for storage | |
85 | - | |
86 | - // utxo config | |
87 | - VotePendingBlockNumber uint64 // the valid block interval for vote utxo after the vote transaction is confirmed | |
88 | - CoinbasePendingBlockNumber uint64 // the valid block interval for coinbase utxo after the coinbase transaction is confirmed | |
80 | + MaxBlockGas uint64 // the max used gas for all transactions of a block | |
89 | 81 | CoinbaseArbitrarySizeLimit int // the max size for coinbase arbitrary |
90 | 82 | } |
91 | 83 | |
92 | 84 | // DPOSConfig indicate the dpos consensus config |
93 | 85 | type DPOSConfig struct { |
94 | 86 | NumOfConsensusNode int64 // the number of consensus node |
95 | - BlockNumEachNode uint64 // the number of generated continuous blocks for each node | |
96 | - RoundVoteBlockNums uint64 // the block interval which count the vote result in a round | |
97 | 87 | MinConsensusNodeVoteNum uint64 // the min BTM amount for becoming consensus node(the unit is neu) |
98 | 88 | MinVoteOutputAmount uint64 // the min BTM amount for voting output in a transaction(the unit is neu) |
99 | 89 | BlockTimeInterval uint64 // the block time interval for producting a block |