harmony-one / harmony-log-analysis

Harmony Log Analysis and Visualization
5 stars 3 forks source link

E4 Test Fail #6

Closed ivorytowerdds closed 4 years ago

ivorytowerdds commented 4 years ago
2020-04-11 01:39:36,399: INFO: Test-E4: Low staker will never get elected over high staker
2020-04-11 01:39:36,609: INFO: current and last block numbers: 8778, 8815
2020-04-11 01:44:18,819: INFO: second last block in current epoch reached, 8814, wait for 6 seconds to reach the end of the block
2020-04-11 01:44:24,825: INFO: begin collecting eligible validators...
2020-04-11 01:44:27,619: INFO: first block of new epoch reached, 8815, will begin checking all the elgible validators' election result...
2020-04-11 01:44:28,088: WARNING: Test-E4: Fail
2020-04-11 01:44:28,088: WARNING: lowest stake in elected eligible validators: ('one1zxknrp0yth9m4wq4g24dd09zs7dlnrkgdghkvx', 1e+22)
2020-04-11 01:44:28,088: WARNING: highest stake in unelected eligible validators: ('one1mga8zzgyze6gtksxv8kwrej0e7mxt5tle6a0jd', 9.9001e+22)
ivorytowerdds commented 4 years ago

https://github.com/harmony-one/harmony-log-analysis/pull/9 soph fixed this since the original code doesn't use the delegated amount per slot. I fix None Type error. https://github.com/harmony-one/harmony-log-analysis/commit/a1d4e6ff57f3dc4c113de08bcb90363973588c0b Now it passed. This can be closed now.