Fixing remote push/pull

Remote IDs were wrong (the bound check was incorrect), and patches to pull weren't checked against the local channel

Created by  pmeunier  on September 13, 2021
7HOBLRD43W2R5OVOYZVDO5LYPBZS7OSLDS7FH4NVNMBL3AZGMLSQC
Change contents