Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions benchmarks/benchmarks.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const Benchmark = require('benchmark')
const utils = require('../test/utils')
const suite = new Benchmark.Suite('gossipsub')
Expand Down
15,318 changes: 9,029 additions & 6,289 deletions package-lock.json

Large diffs are not rendered by default.

48 changes: 21 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"pretest:e2e": "npm run build",
"benchmark": "yarn benchmark:files 'test/benchmark/**/*.test.ts'",
"benchmark:files": "NODE_OPTIONS='--max-old-space-size=4096 --loader=ts-node/esm' benchmark --config .benchrc.yaml --defaultBranch master",
"test": "aegir test -f './dist/test/*.spec.js'",
"test": "aegir test",
"test:unit": "aegir test -f './dist/test/unit/*.test.js' --target node",
"test:e2e": "aegir test -f './dist/test/e2e/*.spec.js'",
"test:e2e": "aegir test -f './dist/test/e2e/*.test.js'",
"test:node": "npm run test -- --target node",
"test:browser": "npm run test -- --target browser"
},
Expand All @@ -73,14 +73,15 @@
},
"homepage": "https://github.com/ChainSafe/js-libp2p-gossipsub#readme",
"dependencies": {
"@libp2p/crypto": "^5.0.0",
"@libp2p/interface": "^2.0.0",
"@libp2p/interface-internal": "^2.0.0",
"@libp2p/peer-id": "^5.0.0",
"@libp2p/crypto": "^5.1.9",
"@libp2p/interface": "^3.0.0",
"@libp2p/interface-internal": "^3.0.0",
"@libp2p/peer-id": "^6.0.0",
"@libp2p/pubsub": "^10.0.0",
"@multiformats/multiaddr": "^12.1.14",
"@libp2p/utils": "^7.0.0",
"@multiformats/multiaddr": "^13.0.1",
"denque": "^2.1.0",
"it-length-prefixed": "^9.0.4",
"it-length-prefixed": "^10.0.1",
"it-pipe": "^3.0.1",
"it-pushable": "^3.2.3",
"multiformats": "^13.0.1",
Expand All @@ -89,39 +90,32 @@
"uint8arrays": "^5.0.1"
},
"devDependencies": {
"@chainsafe/as-sha256": "^0.4.1",
"@dapplion/benchmark": "^0.2.4",
"@libp2p/floodsub": "^10.0.0",
"@libp2p/interface-compliance-tests": "^6.0.0",
"@libp2p/logger": "^5.0.0",
"@libp2p/peer-store": "^11.0.0",
"@types/node": "^20.11.6",
"@chainsafe/as-sha256": "^1.2.0",
"@dapplion/benchmark": "^1.0.0",
"@libp2p/floodsub": "^11.0.0",
"@libp2p/logger": "^6.0.0",
"@libp2p/multistream-select": "^7.0.1",
"@libp2p/peer-store": "^12.0.0",
"@types/node": "^22.18.1",
"@types/sinon": "^17.0.3",
"abortable-iterator": "^5.1.0",
"aegir": "^44.1.1",
"aegir": "^47.0.21",
"datastore-core": "^10.0.0",
"delay": "^6.0.0",
"it-all": "^3.0.6",
"mkdirp": "^3.0.1",
"p-defer": "^4.0.0",
"p-event": "^6.0.0",
"p-retry": "^6.2.0",
"p-wait-for": "^5.0.2",
"p-event": "^7.0.0",
"p-retry": "^7.0.0",
"p-wait-for": "^6.0.0",
"protons": "^7.5.0",
"sinon": "^18.0.1",
"sinon": "^21.0.0",
"sinon-ts": "^2.0.0",
"time-cache": "^0.3.0"
},
"engines": {
"npm": ">=8.7.0"
},
"eslintConfig": {
"extends": "ipfs",
"ignorePatterns": [
"src/message/rpc*",
"!.aegir.js"
]
},
"contributors": [
"Cayman <[email protected]>",
"Vasco Santos <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const ERR_TOPIC_VALIDATOR_IGNORE = 'ERR_TOPIC_VALIDATOR_IGNORE'
/**
* If peer score is better than this, we accept messages from this peer
* within ACCEPT_FROM_WHITELIST_DURATION_MS from the last time computing score.
**/
*/
export const ACCEPT_FROM_WHITELIST_THRESHOLD_SCORE = 0

/**
Expand Down
Loading
Loading