Skip to content

Commit e4beb82

Browse files
jherrera-jumpmmcgee-jump
authored andcommitted
gui: fix sankey votes accounting
1 parent 824e295 commit e4beb82

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/disco/gui/fd_gui.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,6 @@ fd_gui_txn_waterfall_snap( fd_gui_t * gui,
567567
volatile ulong const * verify_metrics = fd_metrics_tile( verify->metrics );
568568
cur->in.gossip += verify_metrics[ MIDX( COUNTER, VERIFY, GOSSIPED_VOTES_RECEIVED ) ];
569569
}
570-
571-
fd_topo_tile_t const * send = &topo->tiles[ fd_topo_find_tile( topo, "send", 0UL ) ];
572-
cur->in.gossip += fd_metrics_link_out( send->metrics, 0UL )[ FD_METRICS_COUNTER_LINK_CONSUMED_COUNT_OFF ];
573570
} else {
574571
cur->in.gossip = dedup_metrics[ MIDX( COUNTER, DEDUP, GOSSIPED_VOTES_RECEIVED ) ];
575572
}

src/disco/verify/fd_verify_tile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ after_frag( fd_verify_ctx_t * ctx,
113113
(void)sz;
114114
(void)_tspub;
115115

116+
if( FD_UNLIKELY( ctx->in_kind[ in_idx ]==IN_KIND_GOSSIP || ctx->in_kind[ in_idx ]==IN_KIND_SEND ) ) ctx->metrics.gossiped_votes_cnt++;
117+
116118
fd_txn_m_t * txnm = (fd_txn_m_t *)fd_chunk_to_laddr( ctx->out_mem, ctx->out_chunk );
117119
fd_txn_t * txnt = fd_txn_m_txn_t( txnm );
118120
txnm->txn_t_sz = (ushort)fd_txn_parse( fd_txn_m_payload( txnm ), txnm->payload_sz, txnt, NULL );
@@ -152,8 +154,6 @@ after_frag( fd_verify_ctx_t * ctx,
152154
return;
153155
}
154156

155-
if( FD_UNLIKELY( ctx->in_kind[ in_idx ]==IN_KIND_GOSSIP ) ) ctx->metrics.gossiped_votes_cnt++;
156-
157157
ulong realized_sz = fd_txn_m_realized_footprint( txnm, 1, 0 );
158158
ulong tspub = (ulong)fd_frag_meta_ts_comp( fd_tickcount() );
159159
fd_stem_publish( stem, 0UL, 0UL, ctx->out_chunk, realized_sz, 0UL, tsorig, tspub );

0 commit comments

Comments
 (0)