Skip to content

Commit

Permalink
fix les to only send payload and not rlp.encode it again
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Aug 12, 2021
1 parent b0fa1a6 commit 418d610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/devp2p/src/les/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ export class LES extends EventEmitter {
if ((this._peer._hello?.protocolVersion ?? 0) >= 5) {
payload = snappy.compress(payload)
}
this._send(code, rlp.encode(payload))

this._send(code, payload)
}

getMsgPrefix(msgCode: LES.MESSAGE_CODES) {
Expand Down

0 comments on commit 418d610

Please sign in to comment.