File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
packages/core/src/lib/message Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ import type {
1111 PubsubTopic
1212} from "@waku/interfaces" ;
1313import { proto_message as proto } from "@waku/proto" ;
14- import { Logger } from "@waku/utils" ;
1514import { bytesToHex } from "@waku/utils/bytes" ;
1615
1716import { messageHash } from "../message_hash/index.js" ;
1817
19- const log = new Logger ( "message:version-0" ) ;
2018const OneMillion = BigInt ( 1_000_000 ) ;
2119
2220export const Version = 0 ;
@@ -175,18 +173,6 @@ export class Decoder implements IDecoder<IDecodedMessage> {
175173 pubsubTopic : string ,
176174 proto : IProtoMessage
177175 ) : Promise < IDecodedMessage | undefined > {
178- // https://rfc.vac.dev/spec/14/
179- // > If omitted, the value SHOULD be interpreted as version 0.
180- if ( proto . version ?? 0 !== Version ) {
181- log . error (
182- "Failed to decode due to incorrect version, expected:" ,
183- Version ,
184- ", actual:" ,
185- proto . version
186- ) ;
187- return Promise . resolve ( undefined ) ;
188- }
189-
190176 return new DecodedMessage ( pubsubTopic , proto ) ;
191177 }
192178}
You can’t perform that action at this time.
0 commit comments