Merge pull request #291 from status-im/upgrade-libp2p

Upgrade libp2p libraries
This commit is contained in:
Franck Royer 2021-09-06 11:27:52 +10:00 committed by GitHub
commit d6d52b72dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 217 additions and 839 deletions

View File

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Changed
- Upgrade libp2p libraries: @chainsafe/libp2p-noise@4.1.1, libp2p@0.32.4, libp2p-gossipsub@0.11.1.
## [0.12.0] - 2021-09-2 ## [0.12.0] - 2021-09-2
### Added ### Added

1041
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -49,19 +49,19 @@
"node": ">=14" "node": ">=14"
}, },
"dependencies": { "dependencies": {
"@chainsafe/libp2p-noise": "^4.0.0", "@chainsafe/libp2p-noise": "^4.1.1",
"axios": "^0.21.1", "axios": "^0.21.1",
"debug": "^4.3.1", "debug": "^4.3.1",
"ecies-geth": "^1.5.2", "ecies-geth": "^1.5.2",
"it-concat": "^2.0.0", "it-concat": "^2.0.0",
"it-length-prefixed": "^5.0.2", "it-length-prefixed": "^5.0.2",
"js-sha3": "^0.8.0", "js-sha3": "^0.8.0",
"libp2p": "^0.32.0", "libp2p": "^0.32.4",
"libp2p-bootstrap": "^0.13.0", "libp2p-bootstrap": "^0.13.0",
"libp2p-gossipsub": "^0.10.0", "libp2p-gossipsub": "^0.11.1",
"libp2p-mplex": "^0.10.4", "libp2p-mplex": "^0.10.4",
"libp2p-websockets": "^0.16.0", "libp2p-websockets": "^0.16.1",
"multiaddr": "^10.0.0", "multiaddr": "^10.0.1",
"protobufjs": "^6.8.8", "protobufjs": "^6.8.8",
"secp256k1": "^4.0.2", "secp256k1": "^4.0.2",
"uuid": "^8.3.2" "uuid": "^8.3.2"

View File

@ -316,7 +316,7 @@ export class WakuRelay extends Gossipsub {
this.gossipTracer.deliverMessage(msg); this.gossipTracer.deliverMessage(msg);
} }
const msgID = this.getMsgId(msg); const msgID = await this.getMsgId(msg);
const msgIdStr = messageIdToString(msgID); const msgIdStr = messageIdToString(msgID);
// put in seen cache // put in seen cache
this.seenCache.put(msgIdStr); this.seenCache.put(msgIdStr);