state

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ABCIResponses

type ABCIResponses struct {
	DeliverTxs []*types.ResponseDeliverTx `protobuf:"bytes,1,rep,name=deliver_txs,json=deliverTxs,proto3" json:"deliver_txs,omitempty"`
	EndBlock   *types.ResponseEndBlock    `protobuf:"bytes,2,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
	BeginBlock *types.ResponseBeginBlock  `protobuf:"bytes,3,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty"`
}

ABCIResponses retains the responses of the various ABCI calls during block processing. It is persisted to disk for each height before calling Commit.

func (*ABCIResponses) Descriptor

func (*ABCIResponses) Descriptor() ([]byte, []int)

func (*ABCIResponses) GetBeginBlock

func (m *ABCIResponses) GetBeginBlock() *types.ResponseBeginBlock

func (*ABCIResponses) GetDeliverTxs

func (m *ABCIResponses) GetDeliverTxs() []*types.ResponseDeliverTx

func (*ABCIResponses) GetEndBlock

func (m *ABCIResponses) GetEndBlock() *types.ResponseEndBlock

func (*ABCIResponses) Marshal

func (m *ABCIResponses) Marshal() (dAtA []byte, err error)

func (*ABCIResponses) MarshalTo

func (m *ABCIResponses) MarshalTo(dAtA []byte) (int, error)

func (*ABCIResponses) MarshalToSizedBuffer

func (m *ABCIResponses) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ABCIResponses) ProtoMessage

func (*ABCIResponses) ProtoMessage()

func (*ABCIResponses) Reset

func (m *ABCIResponses) Reset()

func (*ABCIResponses) Size

func (m *ABCIResponses) Size() (n int)

func (*ABCIResponses) String

func (m *ABCIResponses) String() string

func (*ABCIResponses) Unmarshal

func (m *ABCIResponses) Unmarshal(dAtA []byte) error

func (*ABCIResponses) XXX_DiscardUnknown

func (m *ABCIResponses) XXX_DiscardUnknown()

func (*ABCIResponses) XXX_Marshal

func (m *ABCIResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ABCIResponses) XXX_Merge

func (m *ABCIResponses) XXX_Merge(src proto.Message)

func (*ABCIResponses) XXX_Size

func (m *ABCIResponses) XXX_Size() int

func (*ABCIResponses) XXX_Unmarshal

func (m *ABCIResponses) XXX_Unmarshal(b []byte) error

type State

type State struct {
	Version state.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
	// immutable
	ChainID       string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	InitialHeight int64  `protobuf:"varint,14,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
	// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
	LastBlockHeight int64          `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
	LastBlockID     types1.BlockID `protobuf:"bytes,4,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
	LastBlockTime   time.Time      `protobuf:"bytes,5,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time"`
	// LastValidators is used to validate block.LastCommit.
	// Validators are persisted to the database separately every time they change,
	// so we can query for historical validator sets.
	// Note that if s.LastBlockHeight causes a valset change,
	// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
	// Extra +1 due to nextValSet delay.
	NextValidators              *types1.ValidatorSet `protobuf:"bytes,6,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"`
	Validators                  *types1.ValidatorSet `protobuf:"bytes,7,opt,name=validators,proto3" json:"validators,omitempty"`
	LastValidators              *types1.ValidatorSet `protobuf:"bytes,8,opt,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"`
	LastHeightValidatorsChanged int64                `` /* 147-byte string literal not displayed */
	// Consensus parameters used for validating blocks.
	// Changes returned by EndBlock and updated after Commit.
	ConsensusParams                  types1.ConsensusParams `protobuf:"bytes,10,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
	LastHeightConsensusParamsChanged int64                  `` /* 165-byte string literal not displayed */
	// Merkle root of the results from executing prev block
	LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
	// the latest AppHash we've received from calling abci.Commit()
	AppHash []byte `protobuf:"bytes,13,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	// the VRF Proof value generated by the last Proposer
	LastProofHash []byte `protobuf:"bytes,1000,opt,name=last_proof_hash,json=lastProofHash,proto3" json:"last_proof_hash,omitempty"`
}

func (*State) Descriptor

func (*State) Descriptor() ([]byte, []int)

func (*State) GetAppHash

func (m *State) GetAppHash() []byte

func (*State) GetChainID

func (m *State) GetChainID() string

func (*State) GetConsensusParams

func (m *State) GetConsensusParams() types1.ConsensusParams

func (*State) GetInitialHeight

func (m *State) GetInitialHeight() int64

func (*State) GetLastBlockHeight

func (m *State) GetLastBlockHeight() int64

func (*State) GetLastBlockID

func (m *State) GetLastBlockID() types1.BlockID

func (*State) GetLastBlockTime

func (m *State) GetLastBlockTime() time.Time

func (*State) GetLastHeightConsensusParamsChanged

func (m *State) GetLastHeightConsensusParamsChanged() int64

func (*State) GetLastHeightValidatorsChanged

func (m *State) GetLastHeightValidatorsChanged() int64

func (*State) GetLastProofHash

func (m *State) GetLastProofHash() []byte

func (*State) GetLastResultsHash

func (m *State) GetLastResultsHash() []byte

func (*State) GetLastValidators

func (m *State) GetLastValidators() *types1.ValidatorSet

func (*State) GetNextValidators

func (m *State) GetNextValidators() *types1.ValidatorSet

func (*State) GetValidators

func (m *State) GetValidators() *types1.ValidatorSet

func (*State) GetVersion

func (m *State) GetVersion() state.Version

func (*State) Marshal

func (m *State) Marshal() (dAtA []byte, err error)

func (*State) MarshalTo

func (m *State) MarshalTo(dAtA []byte) (int, error)

func (*State) MarshalToSizedBuffer

func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

func (m *State) Size() (n int)

func (*State) String

func (m *State) String() string

func (*State) Unmarshal

func (m *State) Unmarshal(dAtA []byte) error

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*State) XXX_Merge

func (m *State) XXX_Merge(src proto.Message)

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

func (m *State) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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