From de74c464238b42fb5ea17a74b9d01fb4723d8406 Mon Sep 17 00:00:00 2001 From: Serge Farny Date: Tue, 8 Oct 2024 15:04:52 +0200 Subject: [PATCH] Router: add comment --- bin/autobahn-router/src/edge.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/autobahn-router/src/edge.rs b/bin/autobahn-router/src/edge.rs index 8631c7f..6fd0f7a 100644 --- a/bin/autobahn-router/src/edge.rs +++ b/bin/autobahn-router/src/edge.rs @@ -16,8 +16,13 @@ pub struct EdgeState { /// List of (input, price, ln-price) pairs, sorted by input asc // TODO: it may be much better to store this centrally, so it's cheap to take a snapshot pub cached_prices: Vec<(u64, f64, f64)>, + + /// Will be invalid if we fail to compute a quote is_valid: bool, + + /// Will be dirty if we got some account update for this edge, but didn't recompute the price cache yet is_dirty: bool, + pub last_update: u64, pub last_update_slot: u64,