depolymerization

wire gateway for Bitcoin/Ethereum
Log | Files | Refs | Submodules | README | LICENSE

commit c840884e01cc2a5ee76f5a96dd4b4deb6706af07
parent 4afbaca386c7591ac4a9bb657ec375bf7cb153e6
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu,  8 Sep 2022 10:44:22 +0200

fix timestamp (protocol change)

Diffstat:
Mcommon/src/api_common.rs | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/common/src/api_common.rs b/common/src/api_common.rs @@ -87,14 +87,13 @@ impl serde::Serialize for Timestamp { { let mut se_struct = se.serialize_struct("Timestamp", 1)?; match self { - Timestamp::Never => se_struct.serialize_field("t_ms", "never")?, + Timestamp::Never => se_struct.serialize_field("t_s", "never")?, Timestamp::Time(time) => se_struct.serialize_field( - "t_ms", + "t_s", &(time .duration_since(SystemTime::UNIX_EPOCH) .unwrap() - .as_secs() as u128 - * 1000), + .as_secs() as u128), )?, };