Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReportingClient ¶
type ReportingClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config) (*ReportingClient, error)
func (*ReportingClient) SubmitBlockReport ¶
func (r *ReportingClient) SubmitBlockReport(ctx context.Context, payload SubmitBlockReportPayload) error
func (*ReportingClient) SubmitNodeReport ¶
type SubmitBlockReportPayload ¶
type SubmitBlockReportPayload struct {
Type string `json:"type"`
ClientVersion string `json:"clientVersion"`
DBVersion int `json:"dbVersion"`
EventHashVersion int `json:"eventHashVersion"`
Network common.Network `json:"network"`
BlockHeight uint64 `json:"blockHeight"`
BlockHash chainhash.Hash `json:"blockHash"`
EventHash chainhash.Hash `json:"eventHash"`
CumulativeEventHash chainhash.Hash `json:"cumulativeEventHash"`
}
Click to show internal directories.
Click to hide internal directories.