Documentation
¶
Index ¶
- Constants
- func ProcessUpgradeParams(prev BlockHeader) (uv UpgradeVote, us UpgradeState, err error)
- func SignedTxnGroupsFlatten(txgroups [][]transactions.SignedTxn) (res []transactions.SignedTxn)
- func SignedTxnsToGroups(txns []transactions.SignedTxn) (res [][]transactions.SignedTxn)
- type Block
- func (_ *Block) CanMarshalMsg(z interface{}) bool
- func (_ *Block) CanUnmarshalMsg(z interface{}) bool
- func (block Block) ConsensusProtocol() config.ConsensusParams
- func (block Block) ContentsMatchHeader() bool
- func (block Block) DecodePaysetFlat() ([]transactions.SignedTxnWithAD, error)
- func (block Block) DecodePaysetGroups() ([][]transactions.SignedTxnWithAD, error)
- func (block Block) Digest() crypto.Digest
- func (block Block) GenesisHash() crypto.Digest
- func (block Block) GenesisID() string
- func (z *Block) MarshalMsg(b []byte) (o []byte)
- func (z *Block) MsgIsZero() bool
- func (z *Block) Msgsize() (s int)
- func (block Block) PaysetCommit() (crypto.Digest, error)
- func (block Block) Round() basics.Round
- func (block *Block) Seed() committee.Seed
- func (b Block) String() string
- func (block Block) TxnMerkleTree() (*merklearray.Tree, error)
- func (z *Block) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (block Block) WithSeed(s committee.Seed) Block
- type BlockHash
- func (_ *BlockHash) CanMarshalMsg(z interface{}) bool
- func (_ *BlockHash) CanUnmarshalMsg(z interface{}) bool
- func (z *BlockHash) MarshalMsg(b []byte) []byte
- func (b BlockHash) MarshalText() ([]byte, error)
- func (z *BlockHash) MsgIsZero() bool
- func (z *BlockHash) Msgsize() int
- func (b BlockHash) String() string
- func (z *BlockHash) UnmarshalMsg(bts []byte) ([]byte, error)
- func (b *BlockHash) UnmarshalText(text []byte) error
- type BlockHeader
- func (_ *BlockHeader) CanMarshalMsg(z interface{}) bool
- func (_ *BlockHeader) CanUnmarshalMsg(z interface{}) bool
- func (bh BlockHeader) DecodeSignedTxn(stb transactions.SignedTxnInBlock) (transactions.SignedTxn, transactions.ApplyData, error)
- func (bh BlockHeader) EncodeSignedTxn(st transactions.SignedTxn, ad transactions.ApplyData) (transactions.SignedTxnInBlock, error)
- func (bh BlockHeader) Hash() BlockHash
- func (z *BlockHeader) MarshalMsg(b []byte) (o []byte)
- func (z *BlockHeader) MsgIsZero() bool
- func (z *BlockHeader) Msgsize() (s int)
- func (bh BlockHeader) NextVersionInfo() (ver protocol.ConsensusVersion, rnd basics.Round, supported bool)
- func (bh BlockHeader) PreCheck(prev BlockHeader) error
- func (bh BlockHeader) ToBeHashed() (protocol.HashID, []byte)
- func (z *BlockHeader) UnmarshalMsg(bts []byte) (o []byte, err error)
- type CompactCertState
- func (_ *CompactCertState) CanMarshalMsg(z interface{}) bool
- func (_ *CompactCertState) CanUnmarshalMsg(z interface{}) bool
- func (z *CompactCertState) MarshalMsg(b []byte) (o []byte)
- func (z *CompactCertState) MsgIsZero() bool
- func (z *CompactCertState) Msgsize() (s int)
- func (z *CompactCertState) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Genesis
- func (_ *Genesis) CanMarshalMsg(z interface{}) bool
- func (_ *Genesis) CanUnmarshalMsg(z interface{}) bool
- func (genesis Genesis) ID() string
- func (z *Genesis) MarshalMsg(b []byte) (o []byte)
- func (z *Genesis) MsgIsZero() bool
- func (z *Genesis) Msgsize() (s int)
- func (genesis Genesis) ToBeHashed() (protocol.HashID, []byte)
- func (z *Genesis) UnmarshalMsg(bts []byte) (o []byte, err error)
- type GenesisAllocation
- func (_ *GenesisAllocation) CanMarshalMsg(z interface{}) bool
- func (_ *GenesisAllocation) CanUnmarshalMsg(z interface{}) bool
- func (z *GenesisAllocation) MarshalMsg(b []byte) (o []byte)
- func (z *GenesisAllocation) MsgIsZero() bool
- func (z *GenesisAllocation) Msgsize() (s int)
- func (z *GenesisAllocation) UnmarshalMsg(bts []byte) (o []byte, err error)
- type RewardsState
- func (_ *RewardsState) CanMarshalMsg(z interface{}) bool
- func (_ *RewardsState) CanUnmarshalMsg(z interface{}) bool
- func (z *RewardsState) MarshalMsg(b []byte) (o []byte)
- func (z *RewardsState) MsgIsZero() bool
- func (z *RewardsState) Msgsize() (s int)
- func (s RewardsState) NextRewardsState(nextRound basics.Round, nextProto config.ConsensusParams, ...) (res RewardsState)
- func (z *RewardsState) UnmarshalMsg(bts []byte) (o []byte, err error)
- type UpgradeState
- type UpgradeVote
- func (_ *UpgradeVote) CanMarshalMsg(z interface{}) bool
- func (_ *UpgradeVote) CanUnmarshalMsg(z interface{}) bool
- func (z *UpgradeVote) MarshalMsg(b []byte) (o []byte)
- func (z *UpgradeVote) MsgIsZero() bool
- func (z *UpgradeVote) Msgsize() (s int)
- func (z *UpgradeVote) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
const ( // MaxInitialGenesisAllocationSize is the maximum number of accounts that are supported when // bootstrapping a new network. The number of account *can* grow further after the bootstrapping. // This value is used exclusively for the messagepack decoder, and has no affect on the network // capabilities/capacity in any way. MaxInitialGenesisAllocationSize = 100000000 )
Variables ¶
This section is empty.
Functions ¶
func ProcessUpgradeParams ¶
func ProcessUpgradeParams(prev BlockHeader) (uv UpgradeVote, us UpgradeState, err error)
ProcessUpgradeParams determines our upgrade vote, applies it, and returns the generated UpgradeVote and the new UpgradeState
func SignedTxnGroupsFlatten ¶
func SignedTxnGroupsFlatten(txgroups [][]transactions.SignedTxn) (res []transactions.SignedTxn)
SignedTxnGroupsFlatten combines all groups into a flat slice of SignedTxns.
func SignedTxnsToGroups ¶
func SignedTxnsToGroups(txns []transactions.SignedTxn) (res [][]transactions.SignedTxn)
SignedTxnsToGroups splits a slice of SignedTxns into groups.
Types ¶
type Block ¶
type Block struct { BlockHeader Payset transactions.Payset `codec:"txns"` }
A Block contains the Payset and metadata corresponding to a given Round.
func MakeBlock ¶
func MakeBlock(prev BlockHeader) Block
MakeBlock constructs a new valid block with an empty payset and an unset Seed.
func (*Block) CanMarshalMsg ¶
func (*Block) CanUnmarshalMsg ¶
func (Block) ConsensusProtocol ¶
func (block Block) ConsensusProtocol() config.ConsensusParams
ConsensusProtocol returns the consensus protocol params for a block
func (Block) ContentsMatchHeader ¶
ContentsMatchHeader checks that the TxnRoot matches what's in the header, as the header is what the block hash authenticates. If we're given an untrusted block and a known-good hash, we can't trust the block's transactions unless we validate this.
func (Block) DecodePaysetFlat ¶
func (block Block) DecodePaysetFlat() ([]transactions.SignedTxnWithAD, error)
DecodePaysetFlat decodes block.Payset using DecodeSignedTxn, and flattens groups.
func (Block) DecodePaysetGroups ¶
func (block Block) DecodePaysetGroups() ([][]transactions.SignedTxnWithAD, error)
DecodePaysetGroups decodes block.Payset using DecodeSignedTxn, and returns the transactions in groups.
func (Block) GenesisHash ¶
GenesisHash returns the genesis hash from the block header
func (*Block) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Block) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (Block) PaysetCommit ¶
PaysetCommit computes the commitment to the payset, using the appropriate commitment plan based on the block's protocol.
func (Block) TxnMerkleTree ¶
func (block Block) TxnMerkleTree() (*merklearray.Tree, error)
TxnMerkleTree returns a cryptographic commitment to the transactions in the block, along with their ApplyData, as a Merkle tree. This allows the caller to either extract the root hash (for inclusion in the block header), or to generate proofs of membership for transactions that are in this block.
func (*Block) UnmarshalMsg ¶
UnmarshalMsg implements msgp.Unmarshaler
type BlockHash ¶
BlockHash represents the hash of a block
func (*BlockHash) CanMarshalMsg ¶
func (*BlockHash) CanUnmarshalMsg ¶
func (*BlockHash) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (BlockHash) MarshalText ¶
MarshalText returns the BlockHash string as an array of bytes
func (*BlockHash) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*BlockHash) UnmarshalMsg ¶
UnmarshalMsg implements msgp.Unmarshaler
func (*BlockHash) UnmarshalText ¶
UnmarshalText initializes the BlockHash from an array of bytes.
type BlockHeader ¶
type BlockHeader struct { Round basics.Round `codec:"rnd"` // The hash of the previous block Branch BlockHash `codec:"prev"` // Sortition seed Seed committee.Seed `codec:"seed"` // TxnRoot authenticates the set of transactions appearing in the block. // The commitment is computed based on the PaysetCommit type specified // in the block's consensus protocol. TxnRoot crypto.Digest `codec:"txn"` // TimeStamp in seconds since epoch TimeStamp int64 `codec:"ts"` // Genesis ID to which this block belongs. GenesisID string `codec:"gen"` // Genesis hash to which this block belongs. GenesisHash crypto.Digest `codec:"gh"` // Rewards. // // When a block is applied, some amount of rewards are accrued to // every account with AccountData.Status=/=NotParticipating. The // amount is (thisBlock.RewardsLevel-prevBlock.RewardsLevel) of // MicroAlgos for every whole config.Protocol.RewardUnit of MicroAlgos in // that account's AccountData.MicroAlgos. // // Rewards are not compounded (i.e., not added to AccountData.MicroAlgos) // until some other transaction is executed on that account. // // Not compounding rewards allows us to precisely know how many algos // of rewards will be distributed without having to examine every // account to determine if it should get one more algo of rewards // because compounding formed another whole config.Protocol.RewardUnit // of algos. RewardsState // Consensus protocol versioning. // // Each block is associated with a version of the consensus protocol, // stored under UpgradeState.CurrentProtocol. The protocol version // for a block can be determined without having to first decode the // block and its CurrentProtocol field, and this field is present for // convenience and explicitness. Block.Valid() checks that this field // correctly matches the expected protocol version. // // Each block is associated with at most one active upgrade proposal // (a new version of the protocol). An upgrade proposal can be made // by a block proposer, as long as no other upgrade proposal is active. // The upgrade proposal lasts for many rounds (UpgradeVoteRounds), and // in each round, that round's block proposer votes to support (or not) // the proposed upgrade. // // If enough votes are collected, the proposal is approved, and will // definitely take effect. The proposal lingers for some number of // rounds to give clients a chance to notify users about an approved // upgrade, if the client doesn't support it, so the user has a chance // to download updated client software. // // Block proposers influence this upgrade machinery through two fields // in UpgradeVote: UpgradePropose, which proposes an upgrade to a new // protocol, and UpgradeApprove, which signals approval of the current // proposal. // // Once a block proposer determines its UpgradeVote, then UpdateState // is updated deterministically based on the previous UpdateState and // the new block's UpgradeVote. UpgradeState UpgradeVote // TxnCounter counts the number of transactions committed in the // ledger, from the time at which support for this feature was // introduced. // // Specifically, TxnCounter is the number of the next transaction // that will be committed after this block. It is 0 when no // transactions have ever been committed (since TxnCounter // started being supported). TxnCounter uint64 `codec:"tc"` // CompactCert tracks the state of compact certs, potentially // for multiple types of certs. //msgp:sort protocol.CompactCertType protocol.SortCompactCertType CompactCert map[protocol.CompactCertType]CompactCertState `codec:"cc,allocbound=protocol.NumCompactCertTypes"` // contains filtered or unexported fields }
A BlockHeader represents the metadata and commitments to the state of a Block. The Algorand Ledger may be defined minimally as a cryptographically authenticated series of BlockHeader objects.
func (*BlockHeader) CanMarshalMsg ¶
func (_ *BlockHeader) CanMarshalMsg(z interface{}) bool
func (*BlockHeader) CanUnmarshalMsg ¶
func (_ *BlockHeader) CanUnmarshalMsg(z interface{}) bool
func (BlockHeader) DecodeSignedTxn ¶
func (bh BlockHeader) DecodeSignedTxn(stb transactions.SignedTxnInBlock) (transactions.SignedTxn, transactions.ApplyData, error)
DecodeSignedTxn converts a SignedTxnInBlock from a block to SignedTxn and its associated ApplyData.
func (BlockHeader) EncodeSignedTxn ¶
func (bh BlockHeader) EncodeSignedTxn(st transactions.SignedTxn, ad transactions.ApplyData) (transactions.SignedTxnInBlock, error)
EncodeSignedTxn converts a SignedTxn and ApplyData into a SignedTxnInBlock for that block.
func (BlockHeader) Hash ¶
func (bh BlockHeader) Hash() BlockHash
Hash returns the hash of a block header. The hash of a block is the hash of its header.
func (*BlockHeader) MarshalMsg ¶
func (z *BlockHeader) MarshalMsg(b []byte) (o []byte)
MarshalMsg implements msgp.Marshaler
func (*BlockHeader) MsgIsZero ¶
func (z *BlockHeader) MsgIsZero() bool
MsgIsZero returns whether this is a zero value
func (*BlockHeader) Msgsize ¶
func (z *BlockHeader) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (BlockHeader) NextVersionInfo ¶
func (bh BlockHeader) NextVersionInfo() (ver protocol.ConsensusVersion, rnd basics.Round, supported bool)
NextVersionInfo returns information about the next expected protocol version. If no upgrade is scheduled, return the current protocol.
func (BlockHeader) PreCheck ¶
func (bh BlockHeader) PreCheck(prev BlockHeader) error
PreCheck checks if the block header bh is a valid successor to the previous block's header, prev.
func (BlockHeader) ToBeHashed ¶
func (bh BlockHeader) ToBeHashed() (protocol.HashID, []byte)
ToBeHashed implements the crypto.Hashable interface
func (*BlockHeader) UnmarshalMsg ¶
func (z *BlockHeader) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type CompactCertState ¶
type CompactCertState struct { // CompactCertVoters is the root of a Merkle tree containing the // online accounts that will help sign a compact certificate. The // Merkle root, and the compact certificate, happen on blocks that // are a multiple of ConsensusParams.CompactCertRounds. For blocks // that are not a multiple of ConsensusParams.CompactCertRounds, // this value is zero. CompactCertVoters crypto.Digest `codec:"v"` // CompactCertVotersTotal is the total number of microalgos held by // the accounts in CompactCertVoters (or zero, if the merkle root is // zero). This is intended for computing the threshold of votes to // expect from CompactCertVoters. CompactCertVotersTotal basics.MicroAlgos `codec:"t"` // CompactCertNextRound is the next round for which we will accept // a CompactCert transaction. CompactCertNextRound basics.Round `codec:"n"` // contains filtered or unexported fields }
CompactCertState tracks the state of compact certificates.
func (*CompactCertState) CanMarshalMsg ¶
func (_ *CompactCertState) CanMarshalMsg(z interface{}) bool
func (*CompactCertState) CanUnmarshalMsg ¶
func (_ *CompactCertState) CanUnmarshalMsg(z interface{}) bool
func (*CompactCertState) MarshalMsg ¶
func (z *CompactCertState) MarshalMsg(b []byte) (o []byte)
MarshalMsg implements msgp.Marshaler
func (*CompactCertState) MsgIsZero ¶
func (z *CompactCertState) MsgIsZero() bool
MsgIsZero returns whether this is a zero value
func (*CompactCertState) Msgsize ¶
func (z *CompactCertState) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*CompactCertState) UnmarshalMsg ¶
func (z *CompactCertState) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Genesis ¶
type Genesis struct { // The SchemaID allows nodes to store data specific to a particular // universe (in case of upgrades at development or testing time), // and as an optimization to quickly check if two nodes are in // the same universe. SchemaID string `codec:"id"` // Network identifies the unique algorand network for which the ledger // is valid. // Note the Network name should not include a '-', as we generate the // GenesisID from "<Network>-<SchemaID>"; the '-' makes it easy // to distinguish between the network and schema. Network protocol.NetworkID `codec:"network"` // Proto is the consensus protocol in use at the genesis block. Proto protocol.ConsensusVersion `codec:"proto"` // Allocation determines the initial accounts and their state. Allocation []GenesisAllocation `codec:"alloc,allocbound=MaxInitialGenesisAllocationSize"` // RewardsPool is the address of the rewards pool. RewardsPool string `codec:"rwd"` // FeeSink is the address of the fee sink. FeeSink string `codec:"fees"` // InputPool is the address of the input pool. InputPool string `codec:"input"` // Timestamp for the genesis block Timestamp int64 `codec:"timestamp"` // Arbitrary genesis comment string - will be excluded from file if empty Comment string `codec:"comment"` // contains filtered or unexported fields }
A Genesis object defines an Algorand "universe" -- a set of nodes that can talk to each other, agree on the ledger contents, etc. This is defined by the initial account states (GenesisAllocation), the initial consensus protocol (GenesisProto), and the schema of the ledger.
func LoadGenesisFromFile ¶
LoadGenesisFromFile attempts to load a Genesis structure from a (presumably) genesis.json file.
func (*Genesis) CanMarshalMsg ¶
func (*Genesis) CanUnmarshalMsg ¶
func (Genesis) ID ¶
ID is the effective Genesis identifier - the combination of the network and the ledger schema version
func (*Genesis) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Genesis) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (Genesis) ToBeHashed ¶
ToBeHashed impements the crypto.Hashable interface.
type GenesisAllocation ¶
type GenesisAllocation struct { Address string `codec:"addr"` Comment string `codec:"comment"` State basics.AccountData `codec:"state"` // contains filtered or unexported fields }
A GenesisAllocation object represents an allocation of algos to an address in the genesis block. Address is the checksummed short address. Comment is a note about what this address is representing, and is purely informational. State is the initial account state.
func (*GenesisAllocation) CanMarshalMsg ¶
func (_ *GenesisAllocation) CanMarshalMsg(z interface{}) bool
func (*GenesisAllocation) CanUnmarshalMsg ¶
func (_ *GenesisAllocation) CanUnmarshalMsg(z interface{}) bool
func (*GenesisAllocation) MarshalMsg ¶
func (z *GenesisAllocation) MarshalMsg(b []byte) (o []byte)
MarshalMsg implements msgp.Marshaler
func (*GenesisAllocation) MsgIsZero ¶
func (z *GenesisAllocation) MsgIsZero() bool
MsgIsZero returns whether this is a zero value
func (*GenesisAllocation) Msgsize ¶
func (z *GenesisAllocation) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*GenesisAllocation) UnmarshalMsg ¶
func (z *GenesisAllocation) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type RewardsState ¶
type RewardsState struct { // The FeeSink accepts transaction fees. It can only spend to // the incentive pool. FeeSink basics.Address `codec:"fees"` // The RewardsPool accepts periodic injections from the // FeeSink and continually redistributes them to adresses as // rewards. RewardsPool basics.Address `codec:"rwd"` // The InputPool holds stakes that have yet to be claimed. InputPool basics.Address `codec:"input"` // RewardsLevel specifies how many rewards, in MicroAlgos, // have been distributed to each config.Protocol.RewardUnit // of MicroAlgos since genesis. RewardsLevel uint64 `codec:"earn"` // The number of new MicroAlgos added to the participation stake from rewards at the next round. RewardsRate uint64 `codec:"rate"` // The number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits // MicroAlgos for every reward unit in the next round. RewardsResidue uint64 `codec:"frac"` // The round at which the RewardsRate will be recalculated. RewardsRecalculationRound basics.Round `codec:"rwcalr"` // contains filtered or unexported fields }
RewardsState represents the global parameters controlling the rate at which accounts accrue rewards.
func (*RewardsState) CanMarshalMsg ¶
func (_ *RewardsState) CanMarshalMsg(z interface{}) bool
func (*RewardsState) CanUnmarshalMsg ¶
func (_ *RewardsState) CanUnmarshalMsg(z interface{}) bool
func (*RewardsState) MarshalMsg ¶
func (z *RewardsState) MarshalMsg(b []byte) (o []byte)
MarshalMsg implements msgp.Marshaler
func (*RewardsState) MsgIsZero ¶
func (z *RewardsState) MsgIsZero() bool
MsgIsZero returns whether this is a zero value
func (*RewardsState) Msgsize ¶
func (z *RewardsState) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (RewardsState) NextRewardsState ¶
func (s RewardsState) NextRewardsState(nextRound basics.Round, nextProto config.ConsensusParams, incentivePoolBalance basics.MicroAlgos, totalRewardUnits uint64) (res RewardsState)
NextRewardsState computes the RewardsState of the subsequent round given the subsequent consensus parameters, along with the incentive pool balance and the total reward units in the system as of the current round.
func (*RewardsState) UnmarshalMsg ¶
func (z *RewardsState) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type UpgradeState ¶
type UpgradeState struct { CurrentProtocol protocol.ConsensusVersion `codec:"proto"` NextProtocol protocol.ConsensusVersion `codec:"nextproto"` NextProtocolApprovals uint64 `codec:"nextyes"` // NextProtocolVoteBefore specify the last voting round for the next protocol proposal. If there is no voting for // an upgrade taking place, this would be zero. NextProtocolVoteBefore basics.Round `codec:"nextbefore"` // NextProtocolSwitchOn specify the round number at which the next protocol would be adopted. If there is no upgrade taking place, // nor a wait for the next protocol, this would be zero. NextProtocolSwitchOn basics.Round `codec:"nextswitch"` }
UpgradeState tracks the protocol upgrade state machine. It is, strictly speaking, computable from the history of all UpgradeVotes but we keep it in the block for explicitness and convenience (instead of materializing it separately, like balances).
type UpgradeVote ¶
type UpgradeVote struct { // UpgradePropose indicates a proposed upgrade UpgradePropose protocol.ConsensusVersion `codec:"upgradeprop"` // UpgradeDelay indicates the time between acceptance and execution UpgradeDelay basics.Round `codec:"upgradedelay"` // UpgradeApprove indicates a yes vote for the current proposal UpgradeApprove bool `codec:"upgradeyes"` // contains filtered or unexported fields }
UpgradeVote represents the vote of the block proposer with respect to protocol upgrades.
func (*UpgradeVote) CanMarshalMsg ¶
func (_ *UpgradeVote) CanMarshalMsg(z interface{}) bool
func (*UpgradeVote) CanUnmarshalMsg ¶
func (_ *UpgradeVote) CanUnmarshalMsg(z interface{}) bool
func (*UpgradeVote) MarshalMsg ¶
func (z *UpgradeVote) MarshalMsg(b []byte) (o []byte)
MarshalMsg implements msgp.Marshaler
func (*UpgradeVote) MsgIsZero ¶
func (z *UpgradeVote) MsgIsZero() bool
MsgIsZero returns whether this is a zero value
func (*UpgradeVote) Msgsize ¶
func (z *UpgradeVote) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*UpgradeVote) UnmarshalMsg ¶
func (z *UpgradeVote) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler