Skip to content

Commit f0cf58d

Browse files
committed
rename follow bench
1 parent 24a57c4 commit f0cf58d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { printSummary, runChainHeadBench, type Script } from "./chain-head";
22

33
const PROVIDERS = [
44
"ws://localhost:8181",
5+
"wss://polkadot-public-rpc.blockops.network/ws",
6+
"wss://polkadot-rpc.dwellir.com",
7+
"wss://polkadot.public.curie.radiumblock.co/ws",
8+
"wss://rockx-dot.w3node.com/polka-public-dot/ws",
59
"wss://rpc-polkadot.luckyfriday.io",
610
"wss://polkadot.api.onfinality.io/public-ws",
711
"wss://rpc.ibp.network/polkadot",
@@ -10,6 +14,7 @@ const PROVIDERS = [
1014
const ext = {
1115
limitReached: 0,
1216
invalidSubscription: 0,
17+
exfiltratedOps: 0,
1318
};
1419

1520
export const simpleFollow = (): Script => {
@@ -47,9 +52,7 @@ export const simpleFollow = (): Script => {
4752
].includes(ev.event)
4853
) {
4954
if (!ops.delete(ev.operationId)) {
50-
console.error(
51-
`Operation ${ev.operationId} not seen before, likely exfiltrated`,
52-
);
55+
ext.exfiltratedOps++;
5356
}
5457
}
5558
}
@@ -77,6 +80,7 @@ export const simpleFollow = (): Script => {
7780
printSummary(stats);
7881
console.log(`Limit reached: ${ext.limitReached}`);
7982
console.log(`Invalid subscription: ${ext.invalidSubscription}`);
83+
console.log(`Exfiltrated operations: ${ext.exfiltratedOps}`);
8084
process.exit(0);
8185
}, durationMs);
8286
})();

0 commit comments

Comments
 (0)