Optimization for median raw stake and staking new methods (#2192)
* [chain][network] Factor out block reward from internal chain to proper package * [network] Fill out record intended for RPC * [staking][network] NewUtilityMetricSnapshot * Expose rewards to RPC API * Change json field * Fix lint * Remove marshalling * Remove import * Optimize median raw stake, total stake, get stake methods * Remove unnecessary methods and add thread safety * Review feedback * Remove lock/unlock Co-authored-by: Edgar Aroutiounian <edgar.factorial@gmail.com>pull/2218/head
parent
801b4b83e2
commit
2de6b0885c
Loading…
Reference in new issue