@@ -2059,9 +2059,7 @@ fd_gui_handle_rooted_slot_legacy( fd_gui_t * gui,
20592059
20602060static void
20612061fd_gui_handle_optimistically_confirmed_slot ( fd_gui_t * gui ,
2062- ulong * msg ) {
2063- ulong _slot = msg [ 0 ];
2064-
2062+ ulong _slot ) {
20652063 /* Slot 0 is always rooted. No need to iterate all the way back to
20662064 i==_slot */
20672065 for ( ulong i = 0UL ; i < fd_ulong_min ( _slot , FD_GUI_SLOTS_CNT ); i ++ ) {
@@ -2516,6 +2514,14 @@ fd_gui_handle_rooted_slot( fd_gui_t * gui, ulong root_slot ) {
25162514 fd_http_server_ws_broadcast ( gui -> http );
25172515}
25182516
2517+ void
2518+ fd_gui_handle_notarization_update ( fd_gui_t * gui ,
2519+ fd_tower_slot_confirmed_t const * notar ) {
2520+ if ( FD_UNLIKELY ( notar -> slot != ULONG_MAX && gui -> summary .slot_optimistically_confirmed != notar -> slot && notar -> kind == FD_TOWER_SLOT_CONFIRMED_CLUSTER ) ) {
2521+ fd_gui_handle_optimistically_confirmed_slot ( gui , notar -> slot );
2522+ }
2523+ }
2524+
25192525/* fd_gui_handle_tower_update handles updates from the tower tile, which
25202526 manages consensus related fork switching, rooting, slot confirmation. */
25212527void
@@ -2646,7 +2652,7 @@ fd_gui_plugin_message( fd_gui_t * gui,
26462652 fd_gui_handle_rooted_slot_legacy ( gui , (ulong * )msg );
26472653 break ;
26482654 case FD_PLUGIN_MSG_SLOT_OPTIMISTICALLY_CONFIRMED :
2649- fd_gui_handle_optimistically_confirmed_slot ( gui , (ulong * )msg );
2655+ fd_gui_handle_optimistically_confirmed_slot ( gui , (( ulong * )msg )[ 0 ] );
26502656 break ;
26512657 case FD_PLUGIN_MSG_SLOT_COMPLETED : {
26522658 fd_gui_handle_completed_slot ( gui , (ulong * )msg , now );
0 commit comments