Commit 5da5ac2d authored by 张振华's avatar 张振华

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

parents e6e503a5 a90d2eb4
......@@ -278,7 +278,7 @@ func (client *Client) StartConsensus() {
panic(err)
}
OuterLoop:
for !DebugCatchup && block != nil{
for !DebugCatchup && block != nil {
select {
case <-hint.C:
dposlog.Info("Still catching up max height......", "cost", time.Since(beg))
......
......@@ -11,12 +11,13 @@ import (
"errors"
"flag"
"fmt"
"github.com/33cn/chain33/common/crypto"
"math/rand"
"os"
"testing"
"time"
"github.com/33cn/chain33/common/crypto"
"github.com/33cn/chain33/blockchain"
"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/common/limits"
......@@ -47,8 +48,8 @@ var (
strPubkey = "03EF0E1D3112CF571743A3318125EDE2E52A4EB904BCBAA4B1F75020C2846A7EB4"
pubkey []byte
)
const fee = 1e6
const fee = 1e6
func init() {
err := limits.SetLimits()
......
......@@ -573,7 +573,7 @@ func (voted *VotedState) timeOut(cs *ConsensusState) {
block := cs.client.GetCurrentBlock()
task := DecideTaskByTime(now)
dposlog.Info("address info", "privValidatorAddr", hex.EncodeToString(cs.privValidator.GetAddress()), "VotedNodeAddress",hex.EncodeToString(cs.currentVote.VotedNodeAddress))
dposlog.Info("address info", "privValidatorAddr", hex.EncodeToString(cs.privValidator.GetAddress()), "VotedNodeAddress", hex.EncodeToString(cs.currentVote.VotedNodeAddress))
if bytes.Equal(cs.privValidator.GetAddress(), cs.currentVote.VotedNodeAddress) {
//当前节点为出块节点
......
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