Fix coinbase reward type.

This commit is contained in:
FiveMovesAhead 2025-01-16 16:31:22 +00:00
parent 4029d4fcc2
commit ff4c455335

View File

@ -165,7 +165,7 @@ pub(crate) async fn update(cache: &mut AddBlockCache) {
let fraction = PreciseNumber::from_f64(*fraction);
*player_data
.reward_by_type
.entry(RewardType::Delegator)
.entry(RewardType::Benchmarker)
.or_insert(zero.clone()) += coinbase_amount * fraction;
}