From 8ff73e929d761fc197db0138bcc0ea345f9cd5e2 Mon Sep 17 00:00:00 2001 From: staheri14 Date: Wed, 7 Apr 2021 18:37:10 +0000 Subject: [PATCH] deploy: d49cb53b563c1463d7e39c6ae36abc3868e85967 --- .update.timestamp | 2 +- .../vendor/libbacktrace-upstream/libtool | 2 +- waku/v2/protocol/waku_message.nim | 17 ++++++++++------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.update.timestamp b/.update.timestamp index b240f5449..8187b2b0e 100644 --- a/.update.timestamp +++ b/.update.timestamp @@ -1 +1 @@ -1617404008 \ No newline at end of file +1617818926 \ No newline at end of file diff --git a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool index e0355a83a..071606331 100755 --- a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool +++ b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool @@ -2,7 +2,7 @@ # libtool - Provide generalized library-building support services. # Generated automatically by config.status (libbacktrace) version-unused -# Libtool was configured on host fv-az199-788: +# Libtool was configured on host fv-az190-28: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, diff --git a/waku/v2/protocol/waku_message.nim b/waku/v2/protocol/waku_message.nim index 75abd01b7..9661faab3 100644 --- a/waku/v2/protocol/waku_message.nim +++ b/waku/v2/protocol/waku_message.nim @@ -16,11 +16,13 @@ type payload*: seq[byte] contentTopic*: ContentTopic version*: uint32 - # the proof field indicates that the message is not a spam - # this field will be used in the rln-relay protocol - proof*: seq[byte] # sender generated timestamp timestamp*: float64 + # the proof field indicates that the message is not a spam + # this field will be used in the rln-relay protocol + # XXX Experimental, this is part of https://rfc.vac.dev/spec/17/ spec and not yet part of WakuMessage spec + proof*: seq[byte] + # Encoding and decoding ------------------------------------------------------- proc init*(T: type WakuMessage, buffer: seq[byte]): ProtoResult[T] = @@ -30,8 +32,9 @@ proc init*(T: type WakuMessage, buffer: seq[byte]): ProtoResult[T] = discard ? pb.getField(1, msg.payload) discard ? pb.getField(2, msg.contentTopic) discard ? pb.getField(3, msg.version) - discard ? pb.getField(4, msg.proof) - discard ? pb.getField(5, msg.timestamp) + discard ? pb.getField(4, msg.timestamp) + # XXX Experimental, this is part of https://rfc.vac.dev/spec/17/ spec and not yet part of WakuMessage spec + discard ? pb.getField(21, msg.proof) ok(msg) @@ -41,5 +44,5 @@ proc encode*(message: WakuMessage): ProtoBuffer = result.write(1, message.payload) result.write(2, message.contentTopic) result.write(3, message.version) - result.write(4, message.proof) - result.write(5, message.timestamp) + result.write(4, message.timestamp) + result.write(21, message.proof)