Closed distributedstatemachine closed 3 months ago
Regarding "The dynamic alpha for each bond should be calculated as 1.0 - consensus_value for that bond": what about the case where 1.0 - consensus_value gives a negative value? Based on my reading of the YC2 paper, the consensus "\bar W_j" can take values above 1.
Description
We need to modify the calculation of the exponential moving average (EMA) of bonds in our blockchain system to make it more responsive to the current consensus. Currently, the EMA calculation uses a static alpha value derived from a predefined bonds moving average. The proposed change involves using a dynamic alpha value based on the consensus values, which are calculated during each epoch. This dynamic alpha will adjust more quickly to changes in network conditions, potentially leading to a more adaptive and responsive system.
Acceptance Criteria
LiquidAlphaOn
).1.0 - consensus_value
for that bond.btcli s list
command to display the alpha value used in the last EMA calculation for transparency and debugging.Tasks
[ ] Add a configuration flag
LiquidAlphaOn
to enable or disable dynamic alpha calculations.[ ] Implement the new
mat_ema_alpha_vec_sparse
function to handle dynamic alpha values.epoch
function to use the new EMA calculation method based on theLiquidAlphaOn
flag.btcli s list
command to show the alpha value.Related Links