Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Commit

Permalink
1.7.0-unstable
Browse files Browse the repository at this point in the history
Activate EIP155 and EIP158, Byzantine HF
  • Loading branch information
aerth committed Jun 5, 2018
1 parent 80e7a3f commit 172211b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
44 changes: 26 additions & 18 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,36 +37,44 @@ var (
4: big.NewInt(21800), // HF4
5: big.NewInt(22800), // HF5 argonated (argon2id)
6: big.NewInt(36000), // HF6 divisor increase
7: big.NewInt(36050), // eip 155, 158
}

// Testnet now is HF6, avoiding the block #3 (HF3) difficulty bomb
TestnetHF = ForkMap{
0: big.NewInt(0), // hf0 had no changes
1: big.NewInt(1), // increase min difficulty to the next multiple of 2048
2: big.NewInt(2), // use simple difficulty algo (240 seconds)
3: big.NewInt(3), // increase min difficulty for anticipation of gpu mining
4: big.NewInt(4), // HF4
5: big.NewInt(5), // HF5
6: big.NewInt(6), // noop in testnet
0: big.NewInt(0), // hf0 had no changes
1: big.NewInt(1), // increase min difficulty to the next multiple of 2048
2: big.NewInt(2), // use simple difficulty algo (240 seconds)
3: big.NewInt(3), // increase min difficulty for anticipation of gpu mining
4: big.NewInt(4), // HF4
5: big.NewInt(5), // HF5
6: big.NewInt(6), // noop in testnet
7: big.NewInt(25), // eip 155, 158
}
)
var (
// MainnetChainConfig is the chain parameters to run a node on the main network.
MainnetChainConfig = &ChainConfig{
ChainId: big.NewInt(61717561),
HomesteadBlock: big.NewInt(0),
EIP150Block: big.NewInt(0),
Aquahash: new(AquahashConfig),
HF: AquachainHF,
ChainId: big.NewInt(61717561),
HomesteadBlock: big.NewInt(0),
EIP150Block: big.NewInt(0),
EIP155Block: AquachainHF[7],
EIP158Block: AquachainHF[7],
ByzantiumBlock: AquachainHF[7],
Aquahash: new(AquahashConfig),
HF: AquachainHF,
}

// TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network.
// TestnetChainConfig contains the chain parameters to run a node on the Aquachain test network.
TestnetChainConfig = &ChainConfig{
ChainId: big.NewInt(3),
HomesteadBlock: big.NewInt(0),
EIP150Block: big.NewInt(0),
Aquahash: new(AquahashConfig),
HF: TestnetHF,
ChainId: big.NewInt(3),
HomesteadBlock: big.NewInt(0),
EIP150Block: big.NewInt(0),
EIP155Block: TestnetHF[7],
EIP158Block: TestnetHF[7],
ByzantiumBlock: TestnetHF[7],
Aquahash: new(AquahashConfig),
HF: TestnetHF,
}

// RinkebyChainConfig contains the chain parameters to run a node on the Rinkeby test network.
Expand Down
8 changes: 4 additions & 4 deletions params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
)

const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 6 // Minor version component of the current release
VersionPatch = 0 // Patch version component of the current release
VersionMeta = "HF6" // Version metadata to append to the version string
VersionMajor = 1 // Major version component of the current release
VersionMinor = 7 // Minor version component of the current release
VersionPatch = 0 // Patch version component of the current release
VersionMeta = "unstable" // Version metadata to append to the version string
)

// Version holds the textual version string.
Expand Down

0 comments on commit 172211b

Please sign in to comment.