nah, the solution is i change the configuration so the pubkeys are paired with the URLs, write them so they are | because | is not a valid URL character so i know i can split it simply on that character and first segment is the key and second segment to the end is the URL.

then when the message is received, the data structure contains a pubkey|URL pair and it can just skip the URL that matches the auth pubkey

replication REQUIRES the use of auth to properly separate the internet from the mesh anyway. the authed pubkey of a replica cannot be spoofed, and is known in the list of replicas, so when broadcasting it, it just checks the pubkey of auth and then if that matches a given replica in teh list it just skips and only sends to the relays that didn't send it.

there will still be a redundant send from all the replicas aside from the receiver from the internet anyway. this just reduces the number of sends to one less

so if i have 3 replicas, they both get it successfully and then send it to each other and then the replication terminates because both either get it first from one or the reciver. they at least won't send it back to the replica that tehy received it from.

for guaranteeing full propagation this can't be avoided

Reply to this note

Please Login to reply.

Discussion

No replies yet.