Homework 3 forum

Question about the Higher Nodes Contention Test

Nutzerbild von Reka Inovan
Question about the Higher Nodes Contention Test
von Reka Inovan - Dienstag, 1. Dezember 2020, 11:31


I have a question about TestGossiper_Contention_Higher_Nodes_Long_Blockchain. From my understanding, several other tests require the IndexFile function to block until it get a consensus or detect a conflict.

However, in TestGossiper_Contention_Higher_Nodes_Long_Blockchain, the indexFile function is called on a separate goroutine, so the test will continue without waiting for consensus. So the test could fail because it reached the end before the nodes achieves consensus. Is this deliberate?


Nutzerbild von Pasindu Nivanthaka Tennage
Re: Question about the Higher Nodes Contention Test
von Pasindu Nivanthaka Tennage - Donnerstag, 3. Dezember 2020, 19:01


The test assumes that within the given time, the go routines have finished the execution and the consensus has been made.

However, we found that the tests and the bin_gossiper have some issues, and we are currently fixing them. They will be available soon in your repos.

Sorry for inconvenience.