mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-03-02 07:57:22 +08:00
Fix coinbase reward type.
This commit is contained in:
parent
4029d4fcc2
commit
ff4c455335
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user