ReorgEvent

sealed class ReorgEvent

Blockchain reorganization event.

Inheritors

Types

Link copied to clipboard
data class DeepReorg(val reorgHeight: Long, val commonAncestorHeight: Long, val finalityThreshold: Long) : ReorgEvent

Deep reorg (past finality threshold).

Link copied to clipboard
data class ShallowReorg(val reorgHeight: Long, val commonAncestorHeight: Long, val oldBranch: List<BlockInfo>, val newBranch: List<BlockInfo>) : ReorgEvent

Shallow reorg (within finality window).

Properties

Link copied to clipboard

Height of last common ancestor block.

Link copied to clipboard
abstract val reorgHeight: Long

Height at which reorg occurred.