mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
Typo fix. should be Heartbeat and not Hearthbeat
This commit is contained in:
parent
967de3260f
commit
b221b0415a
3 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
package message
|
package message
|
||||||
|
|
||||||
type HearthBeat struct {
|
type HeartBeat struct {
|
||||||
BlockNum uint32 `json:"blocknum"`
|
BlockNum uint32 `json:"blocknum"`
|
||||||
HeadBlockNum uint32 `json:"head_blocknum"`
|
HeadBlockNum uint32 `json:"head_blocknum"`
|
||||||
LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum"`
|
LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum"`
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ func (processor *ShipProcessor) processBlock(block *ship.GetBlocksResultV0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if block.ThisBlock.BlockNum%10 == 0 {
|
if block.ThisBlock.BlockNum%10 == 0 {
|
||||||
hb := message.HearthBeat{
|
hb := message.HeartBeat{
|
||||||
BlockNum: block.ThisBlock.BlockNum,
|
BlockNum: block.ThisBlock.BlockNum,
|
||||||
LastIrreversibleBlockNum: block.LastIrreversible.BlockNum,
|
LastIrreversibleBlockNum: block.LastIrreversible.BlockNum,
|
||||||
HeadBlockNum: block.Head.BlockNum,
|
HeadBlockNum: block.Head.BlockNum,
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ All messages are encoded in `json` format
|
||||||
|
|
||||||
## Types
|
## Types
|
||||||
|
|
||||||
### HearthBeat
|
### HeartBeat
|
||||||
|
|
||||||
Heartbeat messages are posted to the hearthbeat channel periodically.
|
Heartbeat messages are posted to the heartbeat channel periodically.
|
||||||
|
|
||||||
| Field | Datatype | Description |
|
| Field | Datatype | Description |
|
||||||
| -------------------------- | -------- | ------------------------------------------- |
|
| -------------------------- | -------- | ------------------------------------------- |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue