Dear,
By running TestBinGossip_ChainSplit I noticed on line 160 that the binary gossiper #7 returns a message to our gossiper #6, hence the test fails.
This should not be the case as per the homework explanation:
If it comes from another peer A, the gossiper (1) stores A’s address from the “relay peer” field in its list of known peers, (2) changes the “relay peer” field to its own address, and (3) sends the message to all known peers besides peer A, leaving the “origin peer name” field unchanged.
Am I missing something?
Best,
Mladen