Add hardcoded default pool name case in Consensus
This commit is contained in:
parent
bf30f7592e
commit
f4c21dc425
|
@ -135,6 +135,12 @@ func NewConsensusFromJSON(data []byte) (*Consensus, error) {
|
|||
}
|
||||
|
||||
func (c *Consensus) verify() bool {
|
||||
|
||||
if c.PoolName == "default" {
|
||||
//p2pool changed consensus config to use default instead of original value
|
||||
c.PoolName = ConsensusDefault.PoolName
|
||||
}
|
||||
|
||||
if len(c.PoolName) > 128 {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue