From ccc10da1a729a2682392796249160d7c6481b2af Mon Sep 17 00:00:00 2001 From: Ola Ahlman Date: Mon, 16 Dec 2024 09:29:53 +0100 Subject: [PATCH] fix for drep_info regarding active state --- files/grest/rpc/governance/drep_info.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/grest/rpc/governance/drep_info.sql b/files/grest/rpc/governance/drep_info.sql index 1865643c..0cc4ab26 100644 --- a/files/grest/rpc/governance/drep_info.sql +++ b/files/grest/rpc/governance/drep_info.sql @@ -97,7 +97,7 @@ BEGIN SELECT drep_state.drep, drep_state.deposit, - (CASE WHEN (curr_epoch - b.epoch_no) < drep_activity THEN TRUE ELSE FALSE END) AS active, + (CASE WHEN (curr_epoch - b.epoch_no) <= drep_activity THEN TRUE ELSE FALSE END) AS active, (b.epoch_no + drep_activity) AS expires_epoch_no FROM ( SELECT