Homework 3 forum

Question about the Higher Nodes Contention Test

 
Avatar Reka Inovan
Question about the Higher Nodes Contention Test
par Reka Inovan, mardi, 1 décembre 2020, 11:31
 

Hi,

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?

Best,
Reka

Avatar Pasindu Nivanthaka Tennage
Re: Question about the Higher Nodes Contention Test
par Pasindu Nivanthaka Tennage, jeudi, 3 décembre 2020, 19:01
 

Hello,

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.

Regards