#####Problem:
-
Agent
A
has an addressaddA
. The addressaddA
also has an aliasesaddA'
. -
When
A
starts, it usesaddA
as its address, so it computes its id =ID(addA)
-
Another agent
B
starts, it wants to joinA
, but it only knows the aliases address ofA
, that isaddA'
, so it uses this address to to compute the id ofA
, which isID(addA')
. -
Later, when
A
andB
exchange information,A
will see an id =ID(addA')
, and treat it as a different node from itself, thusA
will then send message to itself.
#####To solve the problem:
No one should compute other's id, it should only get the id from the owner.