Closed ineiti closed 2 years ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
1 Code Smell
No Coverage information
0.0% Duplication
About changing "Roster.List" to "GetNodes()":
@calctopian - thanks for your comment. The change I did here is really just relevant to the byzcoin.Client
. The other Roster.List
are very often needed as-is and should not be replaced by the nodes
here. The one in line 209 refers to the leader, and should stay like this. Perhaps the one in line 267 should be changed. Are you using the eventlog
service? In my mind it is marked as deprecated.
The goal is for a client to know which nodes they can connect to without problems. This is needed because some of the nodes might be faulty. Of course this doesn't help against byzantine nodes. But currently we're more concerned by too slow nodes than anything else :)
The best place for this to be would be probably in the cothority/skipchain/api.go
, and then re-use it by the cothority/byzcoin/api.go
.
No, I wasn't using the eventlog
service, just finding instances where byzcoin.Client
was being used.
OK, I fully agree with you that the priority is to connect to the fastest nodes :)
This is a collection of patches for byzcoin and skipchain:
This has been tested in production and behaves nicer. Of course there are still some bugs left...