enable libp2p options

This commit is contained in:
Anton Evangelatov
2021-06-30 12:55:43 +02:00
parent a8d5ae5213
commit 9ec7cd7239
23 changed files with 760 additions and 250 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ import (
func MockHost(mn mocknet.Mocknet) Option {
return Options(
ApplyIf(func(s *Settings) bool { return !s.Online },
Error(errors.New("MockHost must be specified after Online")),
ApplyIf(func(s *Settings) bool { return !s.Base },
Error(errors.New("MockHost must be specified after Base")),
),
Override(new(lp2p.RawHost), lp2p.MockHost),