Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Content-addressed shard DHT on seeder agents with subnet_primary_seeder election, cross-subnet fleet_torrent_gossip, BGP swarm magnets, C2 torrent manifest, and k-of-n peer fetch with C2 fallback.
12 lines
372 B
Go
12 lines
372 B
Go
package config
|
|
|
|
// FleetTorrentEnabled reports whether server policy enables fleet torrent shard DHT.
|
|
func FleetTorrentEnabled(cfg RuntimeConfig) bool {
|
|
return cfg.FleetTorrentEnabled
|
|
}
|
|
|
|
// IsSubnetPrimarySeeder reports whether this agent is the designated primary seeder for its /24.
|
|
func (c RuntimeConfig) IsSubnetPrimarySeeder() bool {
|
|
return c.SubnetPrimarySeeder
|
|
}
|