filecoin-shipyard / 2019-filecoin-network-stats

(Deprecated) Dashboard by Kyokan for tracking network state of go-filecoin devnets in 2019.
Other
34 stars 12 forks source link

decode to "0" instead of "NaN" from BigIntDecoder #54

Closed Schwartz10 closed 4 years ago

Schwartz10 commented 4 years ago

BigIntDecoder returns NaN when an empty buffer is passed. This seems to be a pretty harmless patch to "unstuck" the deployed dashboard by returning '0' when an empty buffer is passed to the BigIntDecoder. More info in this gist.

Will submit a proper fix once we have a better understanding of why the addAsk message comes back with an empty buffer param.