From 9ca22c9a46c3f5528d3a87d51ac03f61432cb9a4 Mon Sep 17 00:00:00 2001 From: Groovie | Mango <95291500+grooviegermanikus@users.noreply.github.com> Date: Sat, 3 Feb 2024 09:19:10 +0100 Subject: [PATCH] reduce LIMIT_LATEST_TXS_PER_ACCOUNT (#54) --- 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 =