Documentation ¶
Overview ¶
Package tendermint is a generated protocol buffer package.
It is generated from these files:
tendermint.proto
It has these top-level messages:
NodeInfo
Index ¶
- Variables
- func DBProvider(ID string, backendType dbm.DBBackendType, dbDir string) dbm.DB
- func DeriveGenesisDoc(burrowGenesisDoc *genesis.GenesisDoc) *tmTypes.GenesisDoc
- func NewLogger(logger *logging.Logger) log.Logger
- func NewPrivValidatorMemory(addressable crypto.Addressable, signer crypto.Signer) *privValidatorMemory
- type BurrowTendermintConfig
- type LastSignedInfo
- func (lsi *LastSignedInfo) SignHeartbeat(sign tmCryptoSigner, chainID string, heartbeat *types.Heartbeat) error
- func (lsi *LastSignedInfo) SignProposal(sign tmCryptoSigner, chainID string, proposal *types.Proposal) error
- func (lsi *LastSignedInfo) SignVote(sign tmCryptoSigner, chainID string, vote *types.Vote) error
- func (lsi *LastSignedInfo) String() string
- type Node
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)
- func (m *NodeInfo) GetListenAddress() string
- func (m *NodeInfo) GetMoniker() string
- func (m *NodeInfo) GetNetwork() string
- func (m *NodeInfo) GetOther() []string
- func (m *NodeInfo) GetVersion() string
- func (m *NodeInfo) Marshal() (dAtA []byte, err error)
- func (m *NodeInfo) MarshalTo(dAtA []byte) (int, error)
- func (*NodeInfo) ProtoMessage()
- func (m *NodeInfo) Reset()
- func (m *NodeInfo) Size() (n int)
- func (m *NodeInfo) String() string
- func (m *NodeInfo) Unmarshal(dAtA []byte) error
- func (*NodeInfo) XXX_MessageName() string
- type NodeView
- func (nv *NodeView) BlockStore() state.BlockStoreRPC
- func (nv *NodeView) IsFastSyncing() bool
- func (nv *NodeView) IsListening() bool
- func (nv *NodeView) Listeners() []p2p.Listener
- func (nv *NodeView) MempoolTransactions(maxTxs int) ([]*txs.Envelope, error)
- func (nv *NodeView) NodeInfo() *NodeInfo
- func (nv *NodeView) PeerRoundStates() ([]*ctypes.PeerRoundState, error)
- func (nv *NodeView) Peers() p2p.IPeerSet
- func (nv *NodeView) RoundState() *ctypes.RoundState
- func (nv *NodeView) RoundStateJSON() ([]byte, error)
- func (nv *NodeView) RunID() simpleuuid.UUID
- func (nv *NodeView) ValidatorPublicKey() crypto.PublicKey
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthTendermint = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTendermint = fmt.Errorf("proto: integer overflow") )
Functions ¶
func DBProvider ¶ added in v0.19.0
func DeriveGenesisDoc ¶ added in v0.18.0
func DeriveGenesisDoc(burrowGenesisDoc *genesis.GenesisDoc) *tmTypes.GenesisDoc
func NewPrivValidatorMemory ¶ added in v0.20.0
func NewPrivValidatorMemory(addressable crypto.Addressable, signer crypto.Signer) *privValidatorMemory
Create a PrivValidator with in-memory state that takes an addressable representing the validator identity and a signer providing private signing for that identity.
Types ¶
type BurrowTendermintConfig ¶ added in v0.18.0
type BurrowTendermintConfig struct { // Initial peers we connect to for peer exchange Seeds string // Whether this node should crawl the network looking for new peers - disconnecting to peers after it has shared addresses SeedMode bool // Peers to which we automatically connect PersistentPeers string ListenAddress string // Optional external that nodes my provide with their NodeInfo ExternalAddress string Moniker string TendermintRoot string }
Burrow's view on Tendermint's config. Since we operate as a Tendermint harness not all configuration values are applicable, we may not allow some values to specified, or we may not allow some to be set independently. So this serves as a layer of indirection over Tendermint's real config that we derive from ours.
func DefaultBurrowTendermintConfig ¶ added in v0.18.0
func DefaultBurrowTendermintConfig() *BurrowTendermintConfig
func (*BurrowTendermintConfig) TendermintConfig ¶ added in v0.18.0
func (btc *BurrowTendermintConfig) TendermintConfig() *tm_config.Config
type LastSignedInfo ¶ added in v0.20.0
type LastSignedInfo struct { sync.Mutex Height int64 `json:"height"` Round int `json:"round"` Step int8 `json:"step"` Signature []byte `json:"signature,omitempty"` // so we dont lose signatures SignBytes binary.HexBytes `json:"signbytes,omitempty"` // so we dont lose signatures }
LastSignedInfo contains information about the latest data signed by a validator to help prevent double signing.
func NewLastSignedInfo ¶ added in v0.20.0
func NewLastSignedInfo() *LastSignedInfo
func (*LastSignedInfo) SignHeartbeat ¶ added in v0.20.0
func (lsi *LastSignedInfo) SignHeartbeat(sign tmCryptoSigner, chainID string, heartbeat *types.Heartbeat) error
SignHeartbeat signs a canonical representation of the heartbeat, along with the chainID. Implements PrivValidator.
func (*LastSignedInfo) SignProposal ¶ added in v0.20.0
func (lsi *LastSignedInfo) SignProposal(sign tmCryptoSigner, chainID string, proposal *types.Proposal) error
SignProposal signs a canonical representation of the proposal, along with the chainID. Implements PrivValidator.
func (*LastSignedInfo) SignVote ¶ added in v0.20.0
func (lsi *LastSignedInfo) SignVote(sign tmCryptoSigner, chainID string, vote *types.Vote) error
SignVote signs a canonical representation of the vote, along with the chainID. Implements PrivValidator.
func (*LastSignedInfo) String ¶ added in v0.20.0
func (lsi *LastSignedInfo) String() string
String returns a string representation of the LastSignedInfo.
type Node ¶ added in v0.18.0
Serves as a wrapper around the Tendermint node's closeable resources (database connections)
type NodeInfo ¶ added in v0.20.0
type NodeInfo struct { ID github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=ID,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"ID"` ListenAddress string `protobuf:"bytes,2,opt,name=ListenAddress,proto3" json:"ListenAddress,omitempty"` Network string `protobuf:"bytes,3,opt,name=Network,proto3" json:"Network,omitempty"` Version string `protobuf:"bytes,4,opt,name=Version,proto3" json:"Version,omitempty"` Channels github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,5,opt,name=Channels,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"Channels"` Moniker string `protobuf:"bytes,6,opt,name=Moniker,proto3" json:"Moniker,omitempty"` Other []string `protobuf:"bytes,7,rep,name=Other" json:"Other,omitempty"` }
func NewNodeInfo ¶ added in v0.20.0
func (*NodeInfo) Descriptor ¶ added in v0.20.0
func (*NodeInfo) GetListenAddress ¶ added in v0.20.0
func (*NodeInfo) GetMoniker ¶ added in v0.20.0
func (*NodeInfo) GetNetwork ¶ added in v0.20.0
func (*NodeInfo) GetVersion ¶ added in v0.20.0
func (*NodeInfo) ProtoMessage ¶ added in v0.20.0
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) XXX_MessageName ¶ added in v0.20.0
type NodeView ¶ added in v0.20.0
type NodeView struct {
// contains filtered or unexported fields
}
func NewNodeView ¶ added in v0.20.0
func (*NodeView) BlockStore ¶ added in v0.20.0
func (nv *NodeView) BlockStore() state.BlockStoreRPC
func (*NodeView) IsFastSyncing ¶ added in v0.20.1
func (*NodeView) IsListening ¶ added in v0.20.0
func (*NodeView) MempoolTransactions ¶ added in v0.20.0
Pass -1 to get all available transactions
func (*NodeView) PeerRoundStates ¶ added in v0.20.0
func (nv *NodeView) PeerRoundStates() ([]*ctypes.PeerRoundState, error)
func (*NodeView) RoundState ¶ added in v0.20.0
func (nv *NodeView) RoundState() *ctypes.RoundState
func (*NodeView) RoundStateJSON ¶ added in v0.20.1
func (*NodeView) RunID ¶ added in v0.20.1
func (nv *NodeView) RunID() simpleuuid.UUID