From 63a28d5951594455e050ea3a68ab5b63cb093964 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Tue, 6 May 2025 19:31:48 +0200 Subject: Reset the expire time of routing table on startup --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 3169068..f984763 100644 --- a/src/main.c +++ b/src/main.c @@ -155,11 +155,14 @@ int main(int argc, char** argv) { /* myID = (struct nodeid){.inner={0xebe9bbf1, 0x3cdba6b3, 0x993e0c87, 0x900d5e25, 0x00000000}}; */ routing_init(&myID); allocate_hashtable(); + } else { + routing_reset_expire(time(NULL) + PROTO_UNCTM); } dht.self = myID; } + metric_init(); routing_update_metrics(); peer_update_metrics(); -- cgit v1.2.3