When I run Alice and Bob validators:
./target/release/polkadot --alice --validator --base-path /tmp/relay/alice --chain chainspec-raw.json --port 30333 --ws-port 9944
./target/release/polkadot --bob --validator --base-path /tmp/relay/bob --chain chainspec-raw.json --port 30334 --ws-port 9945
They cannot find each other and no blocks are produced.
However, if I run the second validator node (Bob) specifying the bootnode of Alice like so:
./target/release/polkadot --bob --validator --base-path /tmp/relay/bob --chain chainspec-raw.json --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWP2XSK96JraZ5PxK6uC33ae8fMRfmugP5DtuwxhrbGPUH --port 30334 --ws-port 9945
then it works and blocks are produced and finalized.
Why aren't the nodes finding each other via peer discovery?
I am on macOS.