1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

Typo fix. should be Heartbeat and not Hearthbeat

This commit is contained in:
Henrik Hautakoski 2023-04-21 15:22:13 +02:00
parent 967de3260f
commit b221b0415a
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
package message
type HearthBeat struct {
type HeartBeat struct {
BlockNum uint32 `json:"blocknum"`
HeadBlockNum uint32 `json:"head_blocknum"`
LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum"`

View file

@ -71,7 +71,7 @@ func (processor *ShipProcessor) processBlock(block *ship.GetBlocksResultV0) {
}
if block.ThisBlock.BlockNum%10 == 0 {
hb := message.HearthBeat{
hb := message.HeartBeat{
BlockNum: block.ThisBlock.BlockNum,
LastIrreversibleBlockNum: block.LastIrreversible.BlockNum,
HeadBlockNum: block.Head.BlockNum,

View file

@ -8,9 +8,9 @@ All messages are encoded in `json` format
## Types
### HearthBeat
### HeartBeat
Heartbeat messages are posted to the hearthbeat channel periodically.
Heartbeat messages are posted to the heartbeat channel periodically.
| Field | Datatype | Description |
| -------------------------- | -------- | ------------------------------------------- |