Skip to content

Commit

Permalink
Support assume_valid_target_reached for SyncState
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Aug 9, 2024
1 parent 501f1e2 commit 55ec15b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions types/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@ type BannedAddress struct {
}

type SyncState struct {
Ibd bool `json:"ibd"`
BestKnownBlockNumber uint64 `json:"best_known_block_number"`
BestKnownBlockTimestamp uint64 `json:"best_known_block_timestamp"`
OrphanBlocksCount uint64 `json:"orphan_blocks_count"`
InflightBlocksCount uint64 `json:"inflight_blocks_count"`
FastTime uint64 `json:"fast_time"`
LowTime uint64 `json:"low_time"`
NormalTime uint64 `json:"normal_time"`
Ibd bool `json:"ibd"`
BestKnownBlockNumber uint64 `json:"best_known_block_number"`
BestKnownBlockTimestamp uint64 `json:"best_known_block_timestamp"`
OrphanBlocksCount uint64 `json:"orphan_blocks_count"`
InflightBlocksCount uint64 `json:"inflight_blocks_count"`
AssumeValidTarget Hash `json:"assume_valid_target"`
AssumeValidTargetReached bool `json:"assume_valid_target_reached"`
MinChainWork uint64 `json:"min_chain_work"`
MinChainWorkReached bool `json:"min_chain_work_reached"`
FastTime uint64 `json:"fast_time"`
LowTime uint64 `json:"low_time"`
NormalTime uint64 `json:"normal_time"`
}

0 comments on commit 55ec15b

Please sign in to comment.