oasisprotocol / oasis-core

Performant and Confidentiality-Preserving Smart Contracts + Blockchains
https://oasisprotocol.org
Apache License 2.0
338 stars 112 forks source link

go trivial scheduler: only two nodes elected leader #850

Closed peterjgilbert closed 6 years ago

peterjgilbert commented 6 years ago

Observed in staging testnet. Despite five nodes being registered, the leader role rotates between only two nodes.

Acceptance Criteria

Yawning commented 6 years ago

https://golang.org/src/math/rand/rand.go?s=6721:6753#L204

Runtime library bug. Easy to fix.

Yawning commented 6 years ago

Hm that might not actually be the problem, but I do want to replace the shuffle.