@@ -300,6 +300,7 @@ fd_gui_ws_open( fd_gui_t * gui,
300300 fd_gui_printf_optimistically_confirmed_slot ,
301301 fd_gui_printf_completed_slot ,
302302 fd_gui_printf_estimated_slot ,
303+ fd_gui_printf_vote_slot ,
303304 fd_gui_printf_live_tile_timers ,
304305 fd_gui_printf_catch_up_history ,
305306 };
@@ -1834,6 +1835,12 @@ fd_gui_handle_reset_slot_legacy( fd_gui_t * gui,
18341835 }
18351836 }
18361837
1838+ if ( FD_LIKELY ( last_landed_vote != ULONG_MAX && gui -> summary .slot_voted != last_landed_vote ) ) {
1839+ gui -> summary .slot_voted = last_landed_vote ;
1840+ fd_gui_printf_vote_slot ( gui );
1841+ fd_http_server_ws_broadcast ( gui -> http );
1842+ }
1843+
18371844 if ( FD_UNLIKELY ( gui -> summary .vote_distance != _slot - last_landed_vote ) ) {
18381845 gui -> summary .vote_distance = _slot - last_landed_vote ;
18391846 fd_gui_printf_vote_distance ( gui );
@@ -2540,6 +2547,12 @@ fd_gui_handle_tower_update( fd_gui_t * gui,
25402547 long now ) {
25412548 (void )now ;
25422549
2550+ if ( FD_LIKELY ( tower -> vote_slot != ULONG_MAX && gui -> summary .slot_voted != tower -> vote_slot ) ) {
2551+ gui -> summary .slot_voted = tower -> vote_slot ;
2552+ fd_gui_printf_vote_slot ( gui );
2553+ fd_http_server_ws_broadcast ( gui -> http );
2554+ }
2555+
25432556 /* handle new root */
25442557 if ( FD_LIKELY ( tower -> root_slot != ULONG_MAX && gui -> summary .slot_rooted != tower -> root_slot ) ) {
25452558 fd_gui_handle_rooted_slot ( gui , tower -> root_slot );
0 commit comments