deploy: c27086e1865ce42ba1b318ceef634ace6b0f07f1

This commit is contained in:
s1fr0 2022-02-23 07:47:22 +00:00
parent b1b0926faf
commit 4cf891798c
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# libtool - Provide generalized library-building support services. # libtool - Provide generalized library-building support services.
# Generated automatically by config.status (libbacktrace) version-unused # Generated automatically by config.status (libbacktrace) version-unused
# Libtool was configured on host fv-az231-53: # Libtool was configured on host fv-az296-784:
# NOTE: Changes made to this file will be lost: look at ltmain.sh. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
# #
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,

View File

@ -46,7 +46,7 @@ proc init*(T: type WakuMessage, buffer: seq[byte]): ProtoResult[T] =
discard ? pb.getField(3, msg.version) discard ? pb.getField(3, msg.version)
var timestamp: zint64 var timestamp: zint64
discard ? pb.getField(4, timestamp) discard ? pb.getField(10, timestamp)
msg.timestamp = Timestamp(timestamp) msg.timestamp = Timestamp(timestamp)
# XXX Experimental, this is part of https://rfc.vac.dev/spec/17/ spec and not yet part of WakuMessage spec # XXX Experimental, this is part of https://rfc.vac.dev/spec/17/ spec and not yet part of WakuMessage spec
@ -65,7 +65,7 @@ proc encode*(message: WakuMessage): ProtoBuffer =
result.write(1, message.payload) result.write(1, message.payload)
result.write(2, message.contentTopic) result.write(2, message.contentTopic)
result.write(3, message.version) result.write(3, message.version)
result.write(4, zint64(message.timestamp)) result.write(10, zint64(message.timestamp))
when defined(rln): when defined(rln):
result.write(21, message.proof.encode()) result.write(21, message.proof.encode())
else: else: