Skip to content

Commit 7875355

Browse files
committed
feat: monero network support
1 parent e40388f commit 7875355

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

cmd/nebula/cmd_crawl.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,11 @@ func CrawlAction(c *cli.Context) error {
448448

449449
// finally, start the crawl
450450
summary, runErr = eng.Run(ctx)
451-
451+
case string(config.NetworkMoneroMainnet):
452+
log.Warnln("Monero network crawling is only available in the paid version of Nebula.")
453+
log.Warnln("This feature includes specialized peer discovery and network analysis for the Monero network.")
454+
log.Warnln("For licensing and access, please reach out to team@probelab.io.")
455+
return nil
452456
default:
453457

454458
addrInfos, err := cfg.BootstrapAddrInfos()

config/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const (
5353
NetworkWakuStatus Network = "WAKU_STATUS"
5454
NetworkWakuTWN Network = "WAKU_TWN"
5555
NetworkGnosis Network = "GNOSIS"
56+
NetworkMoneroMainnet Network = "MONERO_MAINNET"
5657
)
5758

5859
func Networks() []Network {
@@ -82,6 +83,7 @@ func Networks() []Network {
8283
NetworkWakuStatus,
8384
NetworkWakuTWN,
8485
NetworkGnosis,
86+
NetworkMoneroMainnet,
8587
}
8688
}
8789

@@ -420,6 +422,9 @@ type Crawl struct {
420422
// WakuClusterShards defines shard indices for Waku cluster operations.
421423
WakuClusterShards *cli.IntSlice
422424

425+
// EnableGossipSubTopics defines whether to activate gossipsub topic tracking
426+
EnableGossipSubTopics bool
427+
423428
// EnabledGossipSub defines whether to activate gossipsub PX crawling
424429
EnableGossipSubPX bool
425430
}
@@ -694,6 +699,8 @@ func ConfigureNetwork(network string) (*cli.StringSlice, *cli.StringSlice, error
694699
case NetworkWakuTWN:
695700
bootstrapPeers = cli.NewStringSlice(BootstrapPeersWakuTWN...)
696701
protocols = cli.NewStringSlice("d5waku")
702+
case NetworkMoneroMainnet:
703+
// no-op
697704
default:
698705
return nil, nil, fmt.Errorf("unknown network identifier: %s", network)
699706
}

0 commit comments

Comments
 (0)