miner: Fail when Register is called multiple times with one actor address

This commit is contained in:
Łukasz Magiera 2019-08-20 20:21:37 +02:00
parent f43757f9f2
commit 9c079b6dcf

View File

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