From c13df089c167d05c0456ad5a28d93e58af0262d9 Mon Sep 17 00:00:00 2001 From: Matt Conroy Date: Mon, 30 Dec 2024 19:12:02 -0500 Subject: [PATCH] noop the current validator state refresh for now. We're switching to a regular view to avoid deadlocks that occur with realtime fetches to the website --- .../io/provenance/explorer/domain/entities/Validators.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/explorer/domain/entities/Validators.kt b/service/src/main/kotlin/io/provenance/explorer/domain/entities/Validators.kt index 74255a4d..35415267 100644 --- a/service/src/main/kotlin/io/provenance/explorer/domain/entities/Validators.kt +++ b/service/src/main/kotlin/io/provenance/explorer/domain/entities/Validators.kt @@ -150,10 +150,11 @@ class ValidatorStateRecord(id: EntityID) : IntEntity(id) { .toList() } - fun refreshCurrentStateView() = transaction { - val query = "REFRESH MATERIALIZED VIEW current_validator_state" - this.exec(query) - } + fun refreshCurrentStateView() {} +// transaction { +// val query = "REFRESH MATERIALIZED VIEW current_validator_state" +// this.exec(query) +// } fun findAll(activeSet: Int) = transaction { val query = "SELECT * FROM get_all_validator_state(?, ?, NULL)".trimIndent()