OSDN Git Service

revert comment
authorshenao78 <shenao.78@163.com>
Wed, 30 Oct 2019 12:54:34 +0000 (20:54 +0800)
committershenao78 <shenao.78@163.com>
Wed, 30 Oct 2019 12:54:34 +0000 (20:54 +0800)
protocol/state/consensus_result.go

index cff2cfc..9fd571b 100644 (file)
@@ -329,8 +329,8 @@ func (c *ConsensusResult) GetCoinbaseRewards(blockHeight uint64) ([]CoinbaseRewa
 func federationNodes() map[string]*ConsensusNode {
        consensusResult := map[string]*ConsensusNode{}
        for i, xpub := range config.CommonConfig.Federation.Xpubs {
-               //derivedXPub := xpub.Derive(fedConsensusPath)
-               consensusResult[xpub.String()] = &ConsensusNode{XPub: xpub, VoteNum: 0, Order: uint64(i)}
+               derivedXPub := xpub.Derive(fedConsensusPath)
+               consensusResult[derivedXPub.String()] = &ConsensusNode{XPub: derivedXPub, VoteNum: 0, Order: uint64(i)}
        }
        return consensusResult
 }