Merge pull request #440 from thanhson1085/master

set block hardfork for testnet
This commit is contained in:
Nguyen Sy Thanh Son 2019-02-12 16:00:48 +07:00 committed by GitHub
commit c6b788fe9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -489,12 +489,15 @@ func (c *Posv) YourTurn(chain consensus.ChainReader, parent *types.Header, signe
if common.IsTestnet {
// Only three mns hard code for tomo testnet.
masternodes = masternodes[:3]
if parent.Number.Uint64() >= 909000 {
masternodes = []common.Address{
common.HexToAddress("0xfFC679Dcdf444D2eEb0491A998E7902B411CcF20"),
common.HexToAddress("0xd76fd76F7101811726DCE9E43C2617706a4c45c8"),
common.HexToAddress("0x8A97753311aeAFACfd76a68Cf2e2a9808d3e65E8"),
}
}
}
snap, err := c.GetSnapshot(chain, parent)
if err != nil {