X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Flookup.rs;h=779b253d22e211bd5b06e2e48e5ed7c04fe8394a;hb=30ded89530e432c026308c536386cb8c8a4d6774;hp=e3d3ceb63915e83c1a7541d6dfd06923884f71a2;hpb=91616b0e1af71548107b684057ff8254a0df3dac;p=rapid-gossip-sync-server diff --git a/src/lookup.rs b/src/lookup.rs index e3d3ceb..779b253 100644 --- a/src/lookup.rs +++ b/src/lookup.rs @@ -122,7 +122,7 @@ pub(super) async fn fetch_channel_announcements(delta_set: &mut DeltaSet, networ SELECT DISTINCT ON (short_channel_id, direction) short_channel_id, seen FROM channel_updates WHERE short_channel_id = any($1) - ORDER BY seen ASC, short_channel_id ASC, direction ASC + ORDER BY short_channel_id ASC, direction ASC, seen ASC ) AS directional_last_seens ORDER BY short_channel_id ASC, seen DESC ", &[&channel_ids]).await.unwrap();