In bin/ethlambda/src/main.rs we have:
// Wire actors together via protocol refs
let _ = blockchain.actor_ref().recipient::<InitP2P>().send(InitP2P {
p2p: p2p.actor_ref().to_block_chain_to_p2p_ref(),
});
let _ = p2p
.actor_ref()
.recipient::<InitBlockChain>()
.send(InitBlockChain {
blockchain: blockchain.actor_ref().to_p2p_to_block_chain_ref(),
});
We have to make sure we don't have a race condition between these 2 calls.