File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2020
2121static inline uchar
2222fd_stake_delegations_warmup_cooldown_rate_enum ( double warmup_cooldown_rate ) {
23- if ( FD_LIKELY ( warmup_cooldown_rate == FD_STAKE_DELEGATIONS_WARMUP_COOLDOWN_RATE_025 ) ) {
23+ if ( FD_LIKELY ( fd_double_eq ( warmup_cooldown_rate , FD_STAKE_DELEGATIONS_WARMUP_COOLDOWN_RATE_025 ) ) ) {
2424 return FD_STAKE_DELEGATIONS_WARMUP_COOLDOWN_RATE_ENUM_025 ;
25- } else if ( FD_LIKELY ( warmup_cooldown_rate == FD_STAKE_DELEGATIONS_WARMUP_COOLDOWN_RATE_009 ) ) {
25+ } else if ( FD_LIKELY ( fd_double_eq ( warmup_cooldown_rate , FD_STAKE_DELEGATIONS_WARMUP_COOLDOWN_RATE_009 ) ) ) {
2626 return FD_STAKE_DELEGATIONS_WARMUP_COOLDOWN_RATE_ENUM_009 ;
27- } else {
28- FD_LOG_CRIT (( "Invalid warmup cooldown rate %f" , warmup_cooldown_rate ));
2927 }
28+ FD_LOG_CRIT (( "Invalid warmup cooldown rate %f" , warmup_cooldown_rate ));
3029}
3130
3231static inline fd_stake_delegation_t *
You can’t perform that action at this time.
0 commit comments