version

package
v0.19.14 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Protocol             uint64   `protobuf:"varint,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Software             string   `protobuf:"bytes,2,opt,name=software,proto3" json:"software,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

App includes the protocol and software version for the application. This information is included in ResponseInfo. The App.Protocol can be updated in ResponseEndBlock.

func (*App) Descriptor

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

func (*App) GetProtocol

func (m *App) GetProtocol() uint64

func (*App) GetSoftware

func (m *App) GetSoftware() string

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) Reset

func (m *App) Reset()

func (*App) String

func (m *App) String() string

func (*App) XXX_DiscardUnknown

func (m *App) XXX_DiscardUnknown()

func (*App) XXX_Marshal

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

func (*App) XXX_Merge

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

func (*App) XXX_Size

func (m *App) XXX_Size() int

func (*App) XXX_Unmarshal

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

type Consensus

type Consensus struct {
	Block                uint64   `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"`
	App                  uint64   `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.

func (*Consensus) Descriptor

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

func (*Consensus) Equal

func (this *Consensus) Equal(that interface{}) bool

func (*Consensus) GetApp

func (m *Consensus) GetApp() uint64

func (*Consensus) GetBlock

func (m *Consensus) GetBlock() uint64

func (*Consensus) ProtoMessage

func (*Consensus) ProtoMessage()

func (*Consensus) Reset

func (m *Consensus) Reset()

func (*Consensus) String

func (m *Consensus) String() string

func (*Consensus) XXX_DiscardUnknown

func (m *Consensus) XXX_DiscardUnknown()

func (*Consensus) XXX_Marshal

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

func (*Consensus) XXX_Merge

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

func (*Consensus) XXX_Size

func (m *Consensus) XXX_Size() int

func (*Consensus) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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