[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: round timestamp
From: |
gnunet |
Subject: |
[libeufin] branch master updated: round timestamp |
Date: |
Sun, 17 Jan 2021 00:34:05 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 9b94c90 round timestamp
9b94c90 is described below
commit 9b94c90afbf01d77271657f9f239da20cee51e4d
Author: Florian Dold <florian@dold.me>
AuthorDate: Sun Jan 17 00:34:01 2021 +0100
round timestamp
---
nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
index 5f5fb64..ddf6797 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -282,7 +282,7 @@ private suspend fun talerTransfer(call: ApplicationCall) {
* Normally should point to the next round where the
background
* routine will send new PAIN.001 data to the bank; work
in progress..
*/
- timestamp = GnunetTimestamp(System.currentTimeMillis()),
+ timestamp =
roundTimestamp(GnunetTimestamp(System.currentTimeMillis())),
row_id = opaqueRowId
)
),
@@ -291,6 +291,10 @@ private suspend fun talerTransfer(call: ApplicationCall) {
)
}
+fun roundTimestamp(t: GnunetTimestamp): GnunetTimestamp {
+ return GnunetTimestamp(t.t_ms - (t.t_ms % 1000))
+}
+
/**
* Serve a /taler/admin/add-incoming
*/
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: round timestamp,
gnunet <=