protocol: provide more information for invalid timestamps
The invalid timestamp error will only tell the timestamp of the offending node’s message.
Currently, there are issues where that error is occurring but the timestamp seems legitimate. This patch adds the running node’s timestamp to help debug the issue.
3 files changed
+16
-4
37d4ae4a
→
91002ad5
modified crates/radicle-node/src/tests.rs
@@ -447,8 +447,8 @@ fn test_inventory_relay_bad_timestamp() {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/service.rs
@@ -1524,7 +1524,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/service/session.rs
@@ -22,7 +22,7 @@ pub enum Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -36,6 +36,18 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|