Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TimedSync

Implements

Index

Constructors

constructor

Properties

Private m_current_height

m_current_height: number = 0

Private m_local_peerlist

m_local_peerlist: PeerEntry[] = ...

Private m_local_time

m_local_time: Date = ...

Private m_top_id

m_top_id: string = ...

Accessors

current_height

  • get current_height(): number
  • set current_height(value: number): void
  • The current height of the node

    Returns number

  • The current height of the node

    Parameters

    • value: number

    Returns void

local_peerlist

  • The list of locally known peers

    Returns PeerEntry[]

  • The list of locally known peers

    Parameters

    Returns void

local_time

  • get local_time(): Date
  • set local_time(value: Date): void
  • The current time of the node

    Returns Date

  • The current time of the node

    Parameters

    • value: Date

    Returns void

top_id

  • get top_id(): string
  • set top_id(value: string): void
  • The last known block hash of the node

    Returns string

  • The last known block hash of the node

    Parameters

    • value: string

    Returns void

Methods

toBuffer

  • toBuffer(): Buffer
  • Provides the Buffer representation of the object

    Returns Buffer

    the buffer representation of the object

toString

  • toString(): string
  • Provides the hexadecimal (blob) representation of the object

    Returns string

    the hexadecimal (blob) representation of the object

Static from

  • from(data: string | Buffer | Reader): TimedSync
  • Creates a new instance of the object using the supplied data found in the levin packet

    Parameters

    • data: string | Buffer | Reader

      the data contained for the payload in the levin packet

    Returns TimedSync

    a new instance of the object

Generated using TypeDoc