From 64c8e23ad777bdcf5759430d9421410956b94684 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Fri, 2 Feb 2024 20:01:02 +0100 Subject: [PATCH] reduce LIMIT_LATEST_TXS_PER_ACCOUNT --- src/postgres.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/postgres.rs b/src/postgres.rs index c76a093..7b527c6 100644 --- a/src/postgres.rs +++ b/src/postgres.rs @@ -32,7 +32,8 @@ use crate::{ }; const BLOCK_WRITE_BUFFER_SIZE: usize = 5; -const LIMIT_LATEST_TXS_PER_ACCOUNT: i64 = 100; +// requires 125.000.000 * 8 bytes * LIMIT_LATEST_TXS_PER_ACCOUNT +const LIMIT_LATEST_TXS_PER_ACCOUNT: i64 = 100+20; lazy_static::lazy_static! { static ref ACCOUNTS_SAVING_QUEUE: IntGauge =