From 3694bc1c422b31b02dd84eb04c863890f64c7492 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 29 Nov 2022 15:04:29 +0100 Subject: [PATCH] types.go: adding HearthBeat struct --- types.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types.go b/types.go index c1fe57b..0e35cbe 100644 --- a/types.go +++ b/types.go @@ -4,6 +4,12 @@ import ( eos "github.com/eoscanada/eos-go" ) +type HearthBeat struct { + BlockNum uint32 `json:"blocknum"` + HeadBlockNum uint32 `json:"head_blocknum"` + LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum"` +} + type ActionTrace struct { TxID eos.Checksum256 `json:"tx_id"` Receiver eos.Name `json:"receiver"`