Result

sealed interface Result

Outcome of a coherence check. All variants carry both versions for display.

Inheritors

Types

Link copied to clipboard
data class Coherent(val clientLedgerVersion: String, val nodeSpecName: String, val nodeSpecVersion: Long) : VersionCoherence.Result

Node version is in the known-compatible set — proceed normally.

Link copied to clipboard
data class Incompatible(val clientLedgerVersion: String, val nodeSpecName: String, val nodeSpecVersion: Long, val message: String) : VersionCoherence.Result

Node version is outside the known-compatible set AND the policy is set to hard-fail (HARD_FAIL_ON_SKEW = true). The SDK should refuse to submit.

Link copied to clipboard
data class Unknown(val reason: String) : VersionCoherence.Result

The check itself couldn't run (node unreachable, RPC unsupported, parse failure). NOT a skew — the SDK proceeds (the node will validate the tx anyway); recorded for diagnostics.

Link copied to clipboard
data class Warning(val clientLedgerVersion: String, val nodeSpecName: String, val nodeSpecVersion: Long, val message: String) : VersionCoherence.Result

Node version is outside the known-compatible set, but the policy is non-blocking (HARD_FAIL_ON_SKEW = false). Loud warning; the SDK still proceeds.

Properties

Link copied to clipboard
Link copied to clipboard
abstract val nodeSpecName: String
Link copied to clipboard
abstract val nodeSpecVersion: Long