X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=consensus%2Fgeneral.go;h=fe8e7b4d24bb556bc28b5c54b39f3c8ebe5d0435;hp=8598e826c72d803fb0b783b038aa56c01d7278eb;hb=4bd838524ac21991ed954cc0e01c5729a63931ad;hpb=c92eb1b31a3b5683eebe7a09203c67b79c95efc5 diff --git a/consensus/general.go b/consensus/general.go index 8598e826..fe8e7b4d 100644 --- a/consensus/general.go +++ b/consensus/general.go @@ -115,38 +115,44 @@ func VaporDPOSConfig() DPOSConfig { } // ActiveNetParams is the active NetParams -var ActiveNetParams = VaporNetParams +var ActiveNetParams = MainNetParams // NetParams is the correspondence between chain_id and Params var NetParams = map[string]Params{ "mainnet": MainNetParams, - "wisdom": TestNetParams, - "vapor": VaporNetParams, + "testnet": TestNetParams, "solonet": SoloNetParams, } -// MainNetParams is the config for bytom main-net +// MainNetParams is the config for vapor-mainnet var MainNetParams = Params{ Name: "main", - Bech32HRPSegwit: "bm", - DefaultPort: "46657", - DNSSeeds: []string{"www.mainnetseed.bytom.io"}, - Checkpoints: []Checkpoint{}, + Bech32HRPSegwit: "vp", + DefaultPort: "56656", + DNSSeeds: []string{"www.mainnetseed.vapor.io"}, + BasicConfig: BasicConfig{ + MaxBlockGas: uint64(10000000), + MaxGasAmount: int64(200000), + DefaultGasCredit: int64(160000), + StorageGasRate: int64(1), + VMGasRate: int64(200), + VotePendingBlockNumber: uint64(10000), + CoinbasePendingBlockNumber: uint64(100), + CoinbaseArbitrarySizeLimit: 128, + }, + DPOSConfig: VaporDPOSConfig(), + Checkpoints: []Checkpoint{}, + ProducerSubsidys: []ProducerSubsidy{ + {BeginBlock: 1, EndBlock: 63072000, Subsidy: 15000000}, + }, } -// TestNetParams is the config for bytom test-net +// TestNetParams is the config for vapor-testnet var TestNetParams = Params{ Name: "test", - Bech32HRPSegwit: "tm", - DefaultPort: "46656", - DNSSeeds: []string{"www.testnetseed.bytom.io"}, - Checkpoints: []Checkpoint{}, -} - -// VaporNetParams is the config for vapor-net -var VaporNetParams = Params{ - Name: "vapor", - Bech32HRPSegwit: "vp", + Bech32HRPSegwit: "tp", + DefaultPort: "56657", + DNSSeeds: []string{"www.testnetseed.vapor.io"}, BasicConfig: BasicConfig{ MaxBlockGas: uint64(10000000), MaxGasAmount: int64(200000), @@ -164,10 +170,11 @@ var VaporNetParams = Params{ }, } -// SoloNetParams is the config for solo test-net +// SoloNetParams is the config for vapor solonet var SoloNetParams = Params{ Name: "solo", - Bech32HRPSegwit: "sm", + Bech32HRPSegwit: "sp", + DefaultPort: "56658", BasicConfig: BasicConfig{ MaxBlockGas: uint64(10000000), MaxGasAmount: int64(200000), @@ -197,3 +204,9 @@ func BlockSubsidy(height uint64) uint64 { } return 0 } + +// BytomMainNetParams is the config for bytom mainnet +var BytomMainNetParams = Params{ + Name: "main", + Bech32HRPSegwit: "bm", +}