lnrpc: add timestamp_ns field to ForwardingEvent msg

This allows to use FowardingHistory rpc method to receive the data exactly
as it's stored in lnd and to synchronize incrementally the history to an
external database.
This commit is contained in:
Yaacov Akiba Slama authored and Olaoluwa Osuntokun committed 2021-03-05 16:26:28 -08:00
1 parent 3c14e3d71d
commit 4bab68a808
4 files changed
+817 -795

No files matched your search

+6 -1
View File
@@ -3557,7 +3557,7 @@
"timestamp": {
"type": "string",
"format": "uint64",
"description": "Timestamp is the time (unix epoch offset) that this circuit was\ncompleted."
"description": "Timestamp is the time (unix epoch offset) that this circuit was\ncompleted. Deprecated by timestamp_ns."
},
"chan_id_in": {
"type": "string",
@@ -3598,6 +3598,11 @@
"type": "string",
"format": "uint64",
"description": "The total amount (in milli-satoshis) of the outgoing HTLC that created\nthe second half of the circuit."
},
"timestamp_ns": {
"type": "string",
"format": "uint64",
"description": "The number of nanoseconds elapsed since January 1, 1970 UTC when this\ncircuit was completed."
}
}
},