Commit d0b43409 authored by 张振华's avatar 张振华

Merge branch 'dpos-v2' of https://github.com/zzh33cn/plugin into dpos-v2

parents 16814194 59eb77f0
...@@ -76,7 +76,6 @@ func TestDposPerf(t *testing.T) { ...@@ -76,7 +76,6 @@ func TestDposPerf(t *testing.T) {
ioutil.WriteFile("genesis.json", []byte(localGenesis), 0664) ioutil.WriteFile("genesis.json", []byte(localGenesis), 0664)
ioutil.WriteFile("priv_validator.json", []byte(localPriv), 0664) ioutil.WriteFile("priv_validator.json", []byte(localPriv), 0664)
DposPerf() DposPerf()
fmt.Println("=======start clear test data!=======") fmt.Println("=======start clear test data!=======")
clearTestData() clearTestData()
......
...@@ -520,7 +520,7 @@ func TestNode(t *testing.T) { ...@@ -520,7 +520,7 @@ func TestNode(t *testing.T) {
fmt.Println(cs1.(*Client).testFlag) fmt.Println(cs1.(*Client).testFlag)
fmt.Println(cs1.(*Client).GetConsensusState() == nil) fmt.Println(cs1.(*Client).GetConsensusState() == nil)
fmt.Println(cs1.(*Client).GetConsensusState().String()) fmt.Println(cs1.(*Client).GetConsensusState().String())
fmt.Println(cs1.(*Client).GetConsensusState().GetValidators()==nil) fmt.Println(cs1.(*Client).GetConsensusState().GetValidators() == nil)
fmt.Println(cs1.(*Client).GetConsensusState().GetValidatorMgr().ChainID) fmt.Println(cs1.(*Client).GetConsensusState().GetValidatorMgr().ChainID)
fmt.Println(cs1.(*Client).GetConsensusState().GetPrivValidator().GetAddress() == nil) fmt.Println(cs1.(*Client).GetConsensusState().GetPrivValidator().GetAddress() == nil)
fmt.Println(cs1.(*Client).GetConsensusState().IsProposer()) fmt.Println(cs1.(*Client).GetConsensusState().IsProposer())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment