func WithPeerPool(pool api.PeerPool) CoreOpt {
	return func(c *core) error {
		c.peerPool = pool
		return nil
	}
}
// WithPeerPool allows to add custom peer pool
WithPeerPool allows to add custom peer pool
// WithPeerPool allows to add custom peer pool
func WithPeerPool(pool api.PeerPool) CoreOpt {
	return func(c *core) error {
		c.peerPool = pool
		return nil
	}
}
func WithPeerPool ( pool api . PeerPool ) CoreOpt { return func ( c * core ) error { c . peerPool = pool return nil } }
WithPeerPool allows to add custom peer pool
WithPeerPool allows to add custom peer pool