diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-19 16:22:55 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-13 18:11:42 +0800 |
commit | 52abd7878fc59776550c73b0e1c6746448c83c17 (patch) | |
tree | 5824ad4b21fd51b2bfb496914791d71de99dfceb /core/vm/oracle_contracts_test.go | |
parent | 55e22571a1cd5ef5d27a29ab1b0ecfb1b78cb264 (diff) | |
download | go-tangerine-52abd7878fc59776550c73b0e1c6746448c83c17.tar go-tangerine-52abd7878fc59776550c73b0e1c6746448c83c17.tar.gz go-tangerine-52abd7878fc59776550c73b0e1c6746448c83c17.tar.bz2 go-tangerine-52abd7878fc59776550c73b0e1c6746448c83c17.tar.lz go-tangerine-52abd7878fc59776550c73b0e1c6746448c83c17.tar.xz go-tangerine-52abd7878fc59776550c73b0e1c6746448c83c17.tar.zst go-tangerine-52abd7878fc59776550c73b0e1c6746448c83c17.zip |
core: vm: automatically calculate notary set size (#276)
Diffstat (limited to 'core/vm/oracle_contracts_test.go')
-rw-r--r-- | core/vm/oracle_contracts_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/vm/oracle_contracts_test.go b/core/vm/oracle_contracts_test.go index 868ea533c..69e13e1a1 100644 --- a/core/vm/oracle_contracts_test.go +++ b/core/vm/oracle_contracts_test.go @@ -492,8 +492,8 @@ func (g *OracleContractsTestSuite) TestUpdateConfiguration() { big.NewInt(8000000), big.NewInt(250), big.NewInt(2500), - big.NewInt(4), - big.NewInt(4), + big.NewInt(int64(70.5*decimalMultiplier)), + big.NewInt(264*decimalMultiplier), big.NewInt(600), big.NewInt(900), []*big.Int{big.NewInt(1), big.NewInt(1), big.NewInt(1)}) @@ -591,7 +591,7 @@ func (g *OracleContractsTestSuite) TestConfigurationReading() { g.Require().NoError(err) err = GovernanceABI.ABI.Unpack(&value, "notarySetSize", res) g.Require().NoError(err) - g.Require().Equal(g.config.NotarySetSize, uint32(value.Uint64())) + g.Require().True(uint32(value.Uint64()) > 0) // DKGRound. input, err = GovernanceABI.ABI.Pack("dkgRound") @@ -612,7 +612,7 @@ func (g *OracleContractsTestSuite) TestConfigurationReading() { g.Require().NoError(err) err = GovernanceABI.ABI.Unpack(&value, "dkgSetSize", res) g.Require().NoError(err) - g.Require().Equal(g.config.DKGSetSize, uint32(value.Uint64())) + g.Require().True(uint32(value.Uint64()) > 0) // RoundLength. input, err = GovernanceABI.ABI.Pack("roundLength") |