Difference between rcp and rcp_id

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By axilirate

id can be passed in rcp as well
why use rcp_id instead of rcp?

I didn’t understand your question. Could you please elaborate on what “rcp” and “rcp_id” are?

Ertain | 2020-04-04 16:55

@Ertain: It’s about Networking, if you’re interested take a look here.

njamster | 2020-04-04 17:19

:bust_in_silhouette: Reply From: njamster

An rpc (not rcp, it stands for _R_emote _P_rocedure _C_all!) will be send to all other known peers, whereas rpc_id will be only send to the one owning that peer-id. You can pass an id to rpc, but only as an argument for the called method on the other side. It won’t change to which peers the RPC is send.

Thanks and sorry for my dumb mistake, had a lot of stress today trying to understand networking.

axilirate | 2020-04-04 18:22