Table of Contents

Class BlockchainState

Namespace
NLightning.Domain.Bitcoin.ValueObjects
Assembly
NLightning.Domain.dll
public record BlockchainState : IEquatable<BlockchainState>
Inheritance
BlockchainState
Implements
Inherited Members

Constructors

BlockchainState(uint, Hash, DateTime)

public BlockchainState(uint lastProcessedHeight, Hash lastProcessedBlockHash, DateTime lastProcessedAt)

Parameters

lastProcessedHeight uint
lastProcessedBlockHash Hash
lastProcessedAt DateTime

Properties

Id

public Guid Id { get; init; }

Property Value

Guid

LastProcessedAt

public DateTime LastProcessedAt { get; }

Property Value

DateTime

LastProcessedBlockHash

public Hash LastProcessedBlockHash { get; }

Property Value

Hash

LastProcessedHeight

public uint LastProcessedHeight { get; }

Property Value

uint

Methods

UpdateState(Hash, uint)

public void UpdateState(Hash newBlockHash, uint newBlockHeight)

Parameters

newBlockHash Hash
newBlockHeight uint