I have set up a public sync node and a private baking node. The private baking node only gets blocks from the public node.
As recommended in the Tezos Docs, I start the private node with: ./tezos-node run --rpc-addr 127.0.0.1:8732 --private-mode --no-bootstrap-peers --bootstrap-threshold=1 --connections 1 --peer A.A.A.A:9732
(where A.A.A.A is my public nodes IP).
Both nodes are configured to trust each others identity.
Every time my private node is started, it does not connect to the public node. But if I run ./tezos-admin-client connect address A.A.A.A:9732
after startup, it connects fine until after next restart or any loss of connection.
Nothing in the private or public nodes logs indicate that the private node tried to connect by itself at startup.
How can I configure my private node to automatically connect to my public node?
--connections 1
? I think even one public node takes more than 1 connection.