cosmos

package
v0.0.0-...-82eb341 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasValidatorSignature

func HasValidatorSignature(basRPC string, validatorAddress string) (bool, error)

HasValidatorSignature checks if a validator has signed the block

Types

type BlockResponse

type BlockResponse struct {
	Result struct {
		Block struct {
			LastCommit struct {
				Signatures []struct {
					ValidatorAddress string `json:"validator_address"`
					Signature        string `json:"signature"`
				} `json:"signatures"`
			} `json:"last_commit"`
		} `json:"block"`
	} `json:"result"`
}

BlockResponse represents the structure of a block in the cosmos

Jump to

Keyboard shortcuts

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