ENT-11037 Expose and use additional Ledger Recovery statistics (#7553)

This commit is contained in:
Jose Coll 2023-10-31 15:55:55 +00:00 committed by GitHub
parent 7f867a0a49
commit 60bcc99154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ class ResolveTransactionsFlow private constructor(
: this(transaction, transaction.dependencies, otherSide, statesToRecord, deferredAck)
private var fetchNetParamsFromCounterpart = false
// statistics set in DbResolver (Enterprise only) after exiting recordDependencies()
var statistics: ResolveTransactionsFlowStats = ResolveTransactionsFlowStats()
@Suppress("MagicNumber")
@Suspendable
@ -120,3 +122,10 @@ class ResolveTransactionsFlow private constructor(
}
}
}
data class ResolveTransactionsFlowStats(
val resolvableTransactionHashesCount: Long = 0,
val downloadedDependencyCount: Long = 0,
val recordedTransactionCount: Long = 0,
val skippedRecordingTransactionCount: Long = 0
)