pub fn agreed_value(&self) -> Option<RewardCounter> {
        let count = self.counters.len();
        if self.quorum > count {
            return None;
        }

        let median_reward = self.median_reward();
        let median_work = self.median_work();

        Some(RewardCounter {
            reward: median_reward,
            work: median_work,
        })
    }
/// Returns the agreed value between all,
/// interpreted through the median value.
Returns the agreed value between all,
interpreted through the median value.
Returns the agreed value between all interpreted through the median value .
pub fn agreed_value(&self) -> Option<RewardCounter> {
        let count = self.counters.len();
        if self.quorum > count {
            return None;
        }
        let median_reward = self.median_reward();
        let median_work = self.median_work();
        Some(RewardCounter {
            reward: median_reward,
            work: median_work,
        })
    }
pub fn agreed_value ( & self ) -> Option < RewardCounter > { let count = self . counters . len ( ) ; if self . quorum > count { return None ; } let median_reward = self . median_reward ( ) ; let median_work = self . median_work ( ) ; Some ( RewardCounter { reward : median_reward , work : median_work , } ) }
Returns the agreed value between all,
interpreted through the median value.
Returns the agreed value between all interpreted through the median value .
&self
&self