Commit 5b34a61c authored by vipwzw's avatar vipwzw

auto ci

parent f27b8488
...@@ -179,22 +179,22 @@ func DposPerf() { ...@@ -179,22 +179,22 @@ func DposPerf() {
var cands []*dty.Candidator var cands []*dty.Candidator
cand := &dty.Candidator{ cand := &dty.Candidator{
Pubkey: pubkey, Pubkey: pubkey,
Address: hex.EncodeToString(dposClient.csState.privValidator.GetAddress()), Address: hex.EncodeToString(dposClient.csState.privValidator.GetAddress()),
IP: "127.0.0.1", IP: "127.0.0.1",
Votes: 100, Votes: 100,
Status: 0, Status: 0,
} }
cands = append(cands, cand) cands = append(cands, cand)
topNCand := &dty.TopNCandidator{ topNCand := &dty.TopNCandidator{
Cands: cands, Cands: cands,
Hash: []byte("abafasfda"), Hash: []byte("abafasfda"),
Height: dposClient.GetCurrentHeight(), Height: dposClient.GetCurrentHeight(),
SignerPubkey: pubkey, SignerPubkey: pubkey,
} }
reg := &dty.TopNCandidatorRegist{ reg := &dty.TopNCandidatorRegist{
Cand: topNCand, Cand: topNCand,
} }
if dposClient.csState.SendTopNRegistTx(reg) { if dposClient.csState.SendTopNRegistTx(reg) {
fmt.Println("SendTopNRegistTx ok") fmt.Println("SendTopNRegistTx ok")
......
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