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

update

parent 3e540840
...@@ -168,7 +168,7 @@ func DposPerf() { ...@@ -168,7 +168,7 @@ func DposPerf() {
dposClient := cs.(*Client) dposClient := cs.(*Client)
dposClient.csState.QueryCycleBoundaryInfo(task.Cycle) dposClient.csState.QueryCycleBoundaryInfo(task.Cycle)
dposClient.csState.GetCBInfoByCircle(task.Cycle) //dposClient.csState.GetCBInfoByCircle(task.Cycle)
dposClient.csState.QueryVrf(pubkey, task.Cycle) dposClient.csState.QueryVrf(pubkey, task.Cycle)
dposClient.csState.QueryVrfs(dposClient.csState.validatorMgr.Validators, task.Cycle) dposClient.csState.QueryVrfs(dposClient.csState.validatorMgr.Validators, task.Cycle)
dposClient.csState.GetVrfInfoByCircle(task.Cycle, VrfQueryTypeM) dposClient.csState.GetVrfInfoByCircle(task.Cycle, VrfQueryTypeM)
...@@ -200,12 +200,12 @@ func DposPerf() { ...@@ -200,12 +200,12 @@ func DposPerf() {
fmt.Println("Verify CB failed.") fmt.Println("Verify CB failed.")
} }
fmt.Println("=======start GetCBInfoByCircle!=======") //fmt.Println("=======start GetCBInfoByCircle!=======")
//first time, not hit //first time, not hit
dposClient.csState.GetCBInfoByCircle(task.Cycle) //dposClient.csState.GetCBInfoByCircle(task.Cycle)
time.Sleep(1 * time.Second) //time.Sleep(1 * time.Second)
//second time, hit cache //second time, hit cache
dposClient.csState.GetCBInfoByCircle(task.Cycle) //dposClient.csState.GetCBInfoByCircle(task.Cycle)
fmt.Println("=======start VoteVerify!=======") fmt.Println("=======start VoteVerify!=======")
vote := generateVote(dposClient.csState) vote := generateVote(dposClient.csState)
......
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