Documentation ¶
Index ¶
Constants ¶
View Source
const MaxTxSetSize = 150000
MaxTxSetSize defines the maximum amount of transactions. It is TBD along with block size and processing.MaxFrameSize.
Variables ¶
This section is empty.
Functions ¶
func GenerateGenesisBlock ¶
GenerateGenesisBlock is a developer utility for regenerating the genesis block as they would be different per network type. Once a genesis block is approved, its hex blob should be copied into config.TestNetGenesisBlob.
Types ¶
type Generator ¶
type Generator interface {
GenerateCandidateMessage(ctx context.Context, sev message.ScoreProposal, r consensus.RoundUpdate, step uint8) (*message.Score, error)
}
Generator is responsible for generating candidate blocks, and propagating them alongside received Scores. It is triggered by the ScoreEvent, sent by the score generator.
type Helper ¶
type Helper struct { *consensus.Emitter ThisSender []byte ProvisionersKeys []key.Keys P *user.Provisioners Nr int }
Helper for reducing test boilerplate.
func (*Helper) MockRPCCalls ¶
MockRPCCalls makes sure that the RPCBus methods are registered.
Click to show internal directories.
Click to hide internal directories.