Skip to content

Commit 3306e28

Browse files
committed
add vote state v4 parsing
1 parent 028143f commit 3306e28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/flamenco/stakes/fd_vote_states.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ fd_vote_states_update_from_account( fd_vote_states_t * vote_states,
292292
last_vote_timestamp = vsv->inner.current.last_timestamp.timestamp;
293293
last_vote_slot = vsv->inner.current.last_timestamp.slot;
294294
break;
295+
case fd_vote_state_versioned_enum_v4:
296+
node_account = vsv->inner.v4.node_pubkey;
297+
commission = (uchar)fd_ushort_min( vsv->inner.v4.inflation_rewards_commission_bps/100, UCHAR_MAX );
298+
last_vote_timestamp = vsv->inner.v4.last_timestamp.timestamp;
299+
last_vote_slot = vsv->inner.v4.last_timestamp.slot;
300+
break;
295301
default:
296302
__builtin_unreachable();
297303
}

0 commit comments

Comments
 (0)