miner: Fail when Register is called multiple times with one actor address
This commit is contained in:
parent
f43757f9f2
commit
9c079b6dcf
@ -63,6 +63,7 @@ func (m *Miner) Register(addr address.Address) error {
|
||||
}
|
||||
|
||||
log.Warnf("miner.Register called more than once for actor '%s'", addr)
|
||||
return xerrors.Errorf("miner.Register called more than once for actor '%s'", addr)
|
||||
}
|
||||
|
||||
m.addresses = append(m.addresses, addr)
|
||||
|
Loading…
Reference in New Issue
Block a user