diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-02 15:45:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 15:45:29 +0800 |
commit | fb27745f2ca4eaf66f53f48740cbd148ee15bbdf (patch) | |
tree | 1b706c5a93a4f09f27d2bc729cf55c5d4f0b5aaa /integration_test | |
parent | d7f6db871180b53548aed6a5450e1c5879c90b04 (diff) | |
download | dexon-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar dexon-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.gz dexon-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.bz2 dexon-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.lz dexon-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.xz dexon-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.zst dexon-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.zip |
core: replace reliable-broadcast with shard (#159)
Diffstat (limited to 'integration_test')
-rw-r--r-- | integration_test/node.go | 6 | ||||
-rw-r--r-- | integration_test/utils.go | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/integration_test/node.go b/integration_test/node.go index bbd604a..2fa3eb6 100644 --- a/integration_test/node.go +++ b/integration_test/node.go @@ -85,10 +85,9 @@ func NewNode( proposingLatency test.LatencyModel) *Node { var ( - shardID = uint32(0) chainID = uint32(math.MaxUint32) - governanceConfig = gov.GetConfiguration(0) - nodeSetKeys = gov.GetNodeSet(0) + governanceConfig = gov.Configuration(0) + nodeSetKeys = gov.NodeSet(0) nodeID = types.NewNodeID(privateKey.PublicKey()) ) broadcastTargets := make(map[types.NodeID]struct{}) @@ -116,7 +115,6 @@ func NewNode( app: app, db: db, shard: core.NewShard( - shardID, governanceConfig, core.NewAuthenticator(privateKey), app, diff --git a/integration_test/utils.go b/integration_test/utils.go index 3e33362..6c665ad 100644 --- a/integration_test/utils.go +++ b/integration_test/utils.go @@ -25,7 +25,7 @@ func PrepareNodes( if err != nil { return } - for _, prvKey := range gov.GetPrivateKeys() { + for _, prvKey := range gov.PrivateKeys() { nID := types.NewNodeID(prvKey.PublicKey()) apps[nID] = test.NewApp() dbs[nID], err = blockdb.NewMemBackedBlockDB() |