Skip to content

Commit 9b1df5b

Browse files
committed
fixing gwei_min_resolution_clause in receivable_dao.rs::custom_query
1 parent a49aafb commit 9b1df5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

node/src/accountant/db_access_objects/receivable_dao.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@ impl ReceivableDao for ReceivableDaoReal {
255255
fn custom_query(&self, custom_query: CustomQuery<i64>) -> Option<Vec<ReceivableAccount>> {
256256
let variant_top = TopStmConfig{
257257
limit_clause: "limit :limit_count",
258-
gwei_min_resolution_clause: "where (balance_high_b > 0) or ((balance_high_b = 0) and (balance_low_b >= 1000000000))",
258+
gwei_min_resolution_clause: "where (balance_high_b > 0) or ((balance_high_b = 0) and (balance_low_b >= 50000))",
259259
age_ordering_clause: "last_received_timestamp asc",
260260
};
261261
let variant_range = RangeStmConfig {
262262
where_clause: "where ((last_received_timestamp <= :max_timestamp) and (last_received_timestamp >= :min_timestamp)) \
263263
and ((balance_high_b > :min_balance_high_b) or ((balance_high_b = :min_balance_high_b) and (balance_low_b >= :min_balance_low_b))) \
264264
and ((balance_high_b < :max_balance_high_b) or ((balance_high_b = :max_balance_high_b) and (balance_low_b <= :max_balance_low_b)))",
265-
gwei_min_resolution_clause: "and (((balance_high_b > 0) or ((balance_high_b = 0) and (balance_low_b >= 1000000000))) \
265+
gwei_min_resolution_clause: "and (((balance_high_b > 0) or ((balance_high_b = 0) and (balance_low_b >= 50000))) \
266266
or ((balance_high_b < -1) or ((balance_high_b = -1) and (balance_low_b <= 9223372035854775807))))", //i64::MAX - 1*10^9
267267
secondary_order_param: "last_received_timestamp asc"
268268
};

0 commit comments

Comments
 (0)