mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
a4f8175136
Updated bor consensus folder structure
32 lines
777 B
Go
32 lines
777 B
Go
package checkpoint
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
|
)
|
|
|
|
// Checkpoint defines a response object type of bor checkpoint
|
|
type Checkpoint struct {
|
|
Proposer libcommon.Address `json:"proposer"`
|
|
StartBlock *big.Int `json:"start_block"`
|
|
EndBlock *big.Int `json:"end_block"`
|
|
RootHash libcommon.Hash `json:"root_hash"`
|
|
BorChainID string `json:"bor_chain_id"`
|
|
Timestamp uint64 `json:"timestamp"`
|
|
}
|
|
|
|
type CheckpointResponse struct {
|
|
Height string `json:"height"`
|
|
Result Checkpoint `json:"result"`
|
|
}
|
|
|
|
type CheckpointCount struct {
|
|
Result int64 `json:"result"`
|
|
}
|
|
|
|
type CheckpointCountResponse struct {
|
|
Height string `json:"height"`
|
|
Result CheckpointCount `json:"result"`
|
|
}
|