utils

package
v0.0.0-...-92d349b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GLOBAL_EXIT_ROOT_STORAGE_POS uint64 = 0

Functions

func CompareValuesString

func CompareValuesString(vlockNum, ts string, ger common.Hash) error

Types

type GerHTTPResponse

type GerHTTPResponse struct {
	JsonRpc string `json:"jsonrpc"`
	Id      int    `json:"id"`
	Result  string `json:"result"`
}

type HTTPResponse

type HTTPResponse struct {
	JsonRpc string `json:"jsonrpc"`
	Id      int    `json:"id"`
	Result  Result `json:"result"`
}

type RequestData

type RequestData struct {
	Method  string   `json:"method"`
	Params  []string `json:"params"`
	ID      int      `json:"id"`
	Jsonrpc string   `json:"jsonrpc"`
}

type Result

type Result struct {
	Number       string   `json:"number"`
	StateRoot    string   `json:"stateRoot"`
	Timestamp    string   `json:"timestamp"`
	Transactions []string `json:"transactions"`
}

func GetBlockByHash

func GetBlockByHash(blockHash string) (Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL