Don't replicate blobs if the remote id is the same as a local id: assume that the RPC is a CLI or master client.
I found this while debugging why a RPC instance wasn't closing properly, and it turned out to be because ssb-blobs was calling an RPC method while the PacketStream instance was being destroyed, resulting in deadlock. This should probably be fixed in packet-stream or muxrpc somehow, but fixing it here makes the problem that I was seeing go away, for now.
Don't replicate blobs if the remote id is the same as a local id: assume that the RPC is a CLI or master client.
I found this while debugging why a RPC instance wasn't closing properly, and it turned out to be because ssb-blobs was calling an RPC method while the PacketStream instance was being destroyed, resulting in deadlock. This should probably be fixed in packet-stream or muxrpc somehow, but fixing it here makes the problem that I was seeing go away, for now.