Transcript for #bitcoin-dev 2018/01/01

Fresh to bitcoin and am playing with regtest. Have 2 nodes, A and B. A connects to B. When I run bitcoin-cli -datadir=a generate 1, B gets the reward. Is that the way it's supposed to work since A is connected to B's node?