• R/O
  • HTTP
  • SSH
  • HTTPS

bytom: 提交

Official Go implementation of the Bytom protocol


Commit MetaInfo

修订版e32248c87005893a1c4fda9583195d239a5d7388 (tree)
时间2021-04-15 22:29:38
作者mingjingc <2595400537@qq.c...>
Commitermingjingc

Log Message

remove config

更改概述

差异

--- a/consensus/general.go
+++ b/consensus/general.go
@@ -77,23 +77,13 @@ func IsBech32SegwitPrefix(prefix string, params *Params) bool {
7777 // BasicConfig indicate the basic config
7878 type BasicConfig struct {
7979 // 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
8981 CoinbaseArbitrarySizeLimit int // the max size for coinbase arbitrary
9082 }
9183
9284 // DPOSConfig indicate the dpos consensus config
9385 type DPOSConfig struct {
9486 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
9787 MinConsensusNodeVoteNum uint64 // the min BTM amount for becoming consensus node(the unit is neu)
9888 MinVoteOutputAmount uint64 // the min BTM amount for voting output in a transaction(the unit is neu)
9989 BlockTimeInterval uint64 // the block time interval for producting a block
Show on old repository browser