aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-09-27 14:27:18 +0800
committerGitHub <noreply@github.com>2018-09-27 14:27:18 +0800
commit506014f22faba150cd7197e7dd817e72a914dc84 (patch)
tree3f61287a4578c31c447cc8d9283fc3c728dd6cb7 /integration_test
parent9c2f700be09c27e8a8d12fc5bc0ccd017d408a32 (diff)
downloaddexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.gz
dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.zst
dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.zip
core: update governance interface and config (#145)
1) Remove RoundHeight from config. 2) NotarySet is not from governance contract, we get Node set intead. Notary set is caculated from the NodeSet using CRS. 3) CRS is not in the governance interface.
Diffstat (limited to 'integration_test')
-rw-r--r--integration_test/node.go2
-rw-r--r--integration_test/utils.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/integration_test/node.go b/integration_test/node.go
index 715331e..d66a86a 100644
--- a/integration_test/node.go
+++ b/integration_test/node.go
@@ -88,7 +88,7 @@ func NewNode(
shardID = uint32(0)
chainID = uint32(math.MaxUint32)
governanceConfig = gov.GetConfiguration(0)
- broadcastTargets = gov.GetNotarySet(0)
+ broadcastTargets = gov.GetNodeSet(0)
nodeID = types.NewNodeID(privateKey.PublicKey())
)
hashes := common.Hashes{}
diff --git a/integration_test/utils.go b/integration_test/utils.go
index 5b414c5..07d41b6 100644
--- a/integration_test/utils.go
+++ b/integration_test/utils.go
@@ -31,7 +31,7 @@ func PrepareNodes(
if err != nil {
return
}
- for nID := range gov.GetNotarySet(0) {
+ for nID := range gov.GetNodeSet(0) {
apps[nID] = test.NewApp()
if db, err = blockdb.NewMemBackedBlockDB(); err != nil {
@@ -39,7 +39,7 @@ func PrepareNodes(
}
dbs[nID] = db
}
- for nID := range gov.GetNotarySet(0) {
+ for nID := range gov.GetNodeSet(0) {
if key, err = gov.GetPrivateKey(nID); err != nil {
return
}