Skip to content

Commit

Permalink
Update packages/devp2p/src/protocol/les.ts
Browse files Browse the repository at this point in the history
Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
  • Loading branch information
gabrocheleau and acolytec3 authored Aug 30, 2022
1 parent f983ac0 commit 7e215ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devp2p/src/protocol/les.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class LES extends Protocol {
let payload = Buffer.from(RLP.encode(bufArrToArr(statusList)))

// Use snappy compression if peer supports DevP2P >=v5
if (this._peer._hello !== null && this._peer._hello?.protocolVersion >= 5) {
if (this._peer._hello !== null && this._peer._hello.protocolVersion >= 5) {
payload = snappy.compress(payload)
}

Expand Down

0 comments on commit 7e215ac

Please sign in to comment.