harmony-one / harmony-log-analysis

Harmony Log Analysis and Visualization
5 stars 3 forks source link

fix E4, M2 test case #9

Closed sophoah closed 4 years ago

sophoah commented 4 years ago

hi @ivorytowerdds, just fixed E4 so it uses the delegated amount per slot

sophoah commented 4 years ago

Added M2 test case fix which should work even though currently always failing when compared with the median test returned by the network. see opened issue #2

ivorytowerdds commented 4 years ago

I check the M2 script. It's what we wrote had early last week https://github.com/harmony-one/harmony-log-analysis/blob/master/notebooks/economic-test/old_version_test/M2-test.ipynb. But since it's failed sometimes, Ganesha asked me to write using the current method, use the getMedianRawStakeSnapshot. Does it fail for you? For me, it doesn't fail for about 5 tests.

=============== Starting M2_test ===============

INFO:economic-test:Test-M2: Median is correctly computed for even and odd number of available slots
INFO:economic-test:current and last block numbers: 37136, 37163
INFO:economic-test:current epoch: 977, begin testing...
INFO:economic-test:Test-M2: Succeed