Skip to content

Commit 301ab42

Browse files
committed
gui: split out bad bundles in sankey
1 parent ed1d94e commit 301ab42

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/api/entities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export const txnWaterfallOutSchema = z.object({
120120
resolv_ancient: z.number(),
121121
resolv_retained: z.number(),
122122
pack_invalid: z.number(),
123+
pack_invalid_bundle: z.number(),
123124
pack_retained: z.number(),
124125
pack_leader_slow: z.number(),
125126
pack_wait_full: z.number(),

src/features/Overview/SlotPerformance/SlotSankey/consts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const enum SlotNode {
3434
ResolvNoLedger = "No ledger",
3535
ResolvRetained = "Unresolved:resolv",
3636
PackInvalid = "Unpackable",
37+
PackInvalidBundle = "Bad Bundle",
3738
PackExpired = "Expired:pack",
3839
PackRetained = "Buffered:pack",
3940
PackLeaderSlow = "Buffer full",
@@ -72,6 +73,7 @@ export const droppedSlotNodes: SlotNode[] = [
7273
SlotNode.ResolvNoLedger,
7374
SlotNode.ResolvRetained,
7475
SlotNode.PackInvalid,
76+
SlotNode.PackInvalidBundle,
7577
SlotNode.PackExpired,
7678
SlotNode.PackRetained,
7779
SlotNode.PackLeaderSlow,
@@ -114,6 +116,7 @@ export const slotNodes = [
114116
{ id: SlotNode.ResolvExpired, labelPositionOverride: "right" },
115117
{ id: SlotNode.ResolvNoLedger, labelPositionOverride: "right" },
116118
{ id: SlotNode.PackInvalid, labelPositionOverride: "right" },
119+
{ id: SlotNode.PackInvalidBundle, labelPositionOverride: "right" },
117120
{ id: SlotNode.PackExpired, labelPositionOverride: "right" },
118121
{ id: SlotNode.PackLeaderSlow, labelPositionOverride: "right" },
119122
{ id: SlotNode.PackWaitFull, labelPositionOverride: "right" },

src/features/Overview/SlotPerformance/SlotSankey/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function getResolvOut(out: TxnWaterfallOut, resolvRetainedOut: number) {
8787
function getPackOut(out: TxnWaterfallOut) {
8888
return (
8989
out.pack_invalid +
90+
out.pack_invalid_bundle +
9091
out.pack_expired +
9192
out.pack_leader_slow +
9293
out.pack_retained +
@@ -284,6 +285,11 @@ function getLinks(
284285
target: SlotNode.PackInvalid,
285286
value: getValue(waterfall.out.pack_invalid),
286287
},
288+
{
289+
source: SlotNode.Pack,
290+
target: SlotNode.PackInvalidBundle,
291+
value: getValue(waterfall.out.pack_invalid_bundle),
292+
},
287293
{
288294
source: SlotNode.Pack,
289295
target: SlotNode.PackExpired,

0 commit comments

Comments
 (0)