Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MagicValidNewTip = "convertedFromGossip3"
TODO: Delete me when done with gossip 3 dark traffic testing!
View Source
var ZeroVoteID = "n"
Functions ¶
func ComputeProfitWeights ¶
Types ¶
type AddBlockWrapper ¶
type AddBlockWrapper struct {
tracing.ContextHolder
*g4services.AddBlockRequest
// contains filtered or unexported fields
}
AddBlockWrapper wraps an addblock request so that it can be traced through the system. currently exported so that the g3->g4 can use it
type NewNodeOptions ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) SnowBallReceive ¶
type Snowball ¶
func (*Snowball) PreferInLock ¶
PreferInLock is ONLY for contexts in which you already hold a write lock
type TransactionValidator ¶
type TransactionValidator struct {
// contains filtered or unexported fields
}
TransactionValidator validates incoming pubsub messages for internal consistency and sends them to the gossip4 node. It is exported for the gossip3to4 module
func NewTransactionValidator ¶
func NewTransactionValidator(ctx context.Context, logger logging.EventLogger, group *types.NotaryGroup, node *actor.PID) (*TransactionValidator, error)
NewTransactionValidator creates a new TransactionValidator
func (*TransactionValidator) ValidateAbr ¶
func (tv *TransactionValidator) ValidateAbr(validateCtx context.Context, abr *services.AddBlockRequest) bool
type Vote ¶
type Vote struct {
Checkpoint *types.CheckpointWrapper
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.