Add hardcoded default pool name case in Consensus

This commit is contained in:
DataHoarder 2023-05-29 10:23:30 +02:00
parent bf30f7592e
commit f4c21dc425
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -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
}