js/eos-alarm.js
/**
 * Checks the ranking of the following block producer.
 *
 * @param newRank is the rank of the block producer after the refresh interval got triggered.
 * */
Checks the ranking of the following block producer.
@param newRank is the rank of the block producer after the refresh interval got triggered.
Checks the ranking of the following block producer . @param newRank is the rank of the block producer after the refresh interval got triggered .
function checkRanking(newRank) {
    if (newRank === favoriteBlockProducerCurrentRanking){
        return
    }
    var audio
    if (newRank === FIRST) {
        audio = audios.fly
    } else if (newRank > SELECTED_BP_LIMIT) { 
        audio = audios.standby
    } else if (favoriteBlockProducerCurrentRanking < newRank) { 
        audio = audios.down
    } else if (favoriteBlockProducerCurrentRanking > newRank) { 
        audio = newRank === SELECTED_BP_LIMIT ? audios.powerUp : audios.levelUp
    }
    playAudio(audio, newRank === FIRST)
    setLastUpdateTime()
}
function checkRanking ( newRank ) { if ( newRank === favoriteBlockProducerCurrentRanking ) { return } var audio if ( newRank === FIRST ) { audio = audios . fly } else if ( newRank > SELECTED_BP_LIMIT ) { audio = audios . standby } else if ( favoriteBlockProducerCurrentRanking < newRank ) { audio = audios . down } else if ( favoriteBlockProducerCurrentRanking > newRank ) { audio = newRank === SELECTED_BP_LIMIT ? audios . powerUp : audios . levelUp } playAudio ( audio , newRank === FIRST ) setLastUpdateTime ( ) }
Checks the ranking of the following block producer.
Checks the ranking of the following block producer .
//went to standby mode //went down in rank //went up in rank