Don't fail if could not resolved drand dnsaddr

Resolves https://github.com/filecoin-project/lotus/issues/3335

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-08-27 17:50:16 +02:00
parent efd2129187
commit 6e4889d340
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -94,7 +94,12 @@ func BuiltinBootstrap() (dtypes.BootstrapPeers, error) {
}
func DrandBootstrap(d dtypes.DrandConfig) (dtypes.DrandBootstrap, error) {
return addrutil.ParseAddresses(context.TODO(), d.Relays)
addrs, err := addrutil.ParseAddresses(context.TODO(), d.Relays)
if err != nil {
log.Errorf("reoslving drand relays addresses: %+v", err)
return nil, nil
}
return addrs, nil
}
func SetupJournal(lr repo.LockedRepo) error {