We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23dc317 commit 21817cdCopy full SHA for 21817cd
common/src/stake_addresses.rs
@@ -120,7 +120,10 @@ impl StakeAddressMap {
120
self.inner.par_iter().for_each(|(_, sas)| {
121
total_live_stakes.fetch_add(sas.utxo_value, std::sync::atomic::Ordering::Relaxed);
122
if sas.delegated_spo.as_ref().map(|d_spo| d_spo.eq(spo)).unwrap_or(false) {
123
- live_stake.fetch_add(sas.utxo_value, std::sync::atomic::Ordering::Relaxed);
+ live_stake.fetch_add(
124
+ sas.utxo_value + sas.rewards,
125
+ std::sync::atomic::Ordering::Relaxed,
126
+ );
127
live_delegators.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
128
}
129
});
0 commit comments