From 71dbd4731ef897cfe1e1c0d5bc18ee4078d82257 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 11 Sep 2023 12:41:37 +0300 Subject: [PATCH] NDEV-2176: Change the ordering in neon_revision SQL (#189) --- evm_loader/lib/src/types/tracer_ch_db.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/evm_loader/lib/src/types/tracer_ch_db.rs b/evm_loader/lib/src/types/tracer_ch_db.rs index 25172cf0f..0b141696f 100644 --- a/evm_loader/lib/src/types/tracer_ch_db.rs +++ b/evm_loader/lib/src/types/tracer_ch_db.rs @@ -569,9 +569,8 @@ impl ClickHouseDb { let query = r#"SELECT data FROM events.update_account_distributed WHERE - pubkey = ? + pubkey = ? AND slot <= ? ORDER BY - abs(? - slot) ASC, pubkey ASC, slot ASC, write_version ASC