diff --git a/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt b/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt index f9c6d4d5..cafe9ca1 100644 --- a/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt +++ b/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt @@ -535,18 +535,14 @@ class BlockTxRetryRecord(id: EntityID) : IntEntity(id) { it[this.height] = height it[this.retried] = true it[this.success] = false - it[this.errorBlock] = - "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + - e.stackTraceToString() + it[this.errorBlock] = "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + e.stackTraceToString() } } fun insertNonBlockingRetry(height: Int, e: Exception) = transaction { BlockTxRetryTable.insertIgnore { it[this.height] = height - it[this.errorBlock] = - "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + - e.stackTraceToString() + it[this.errorBlock] = "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + e.stackTraceToString() } } diff --git a/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt b/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt index 2a1dcd90..1c798f7a 100644 --- a/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt +++ b/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt @@ -1,11 +1,11 @@ import io.provenance.explorer.domain.entities.TxProcessingFailureRecord import io.provenance.explorer.domain.entities.TxProcessingFailuresTable -import org.jetbrains.exposed.sql.and -import org.jetbrains.exposed.sql.Database -import org.jetbrains.exposed.sql.transactions.transaction import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Assertions.assertNotNull import org.junit.jupiter.api.Test +import org.jetbrains.exposed.sql.and +import org.jetbrains.exposed.sql.Database +import org.jetbrains.exposed.sql.transactions.transaction class TxProcessingFailureRecordTest {