Skip to content

Commit 472902a

Browse files
committed
get credits for v4 stake accounts
1 parent 3306e28 commit 472902a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flamenco/rewards/fd_rewards.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ get_vote_credits( uchar const * account_data,
116116
case fd_vote_state_versioned_enum_current:
117117
*credits = vsv->inner.current.epoch_credits;
118118
break;
119+
case fd_vote_state_versioned_enum_v4:
120+
*credits = vsv->inner.v4.epoch_credits;
121+
break;
119122
default:
120123
__builtin_unreachable();
121124
}

0 commit comments

Comments
 (0)