Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a cache of validation results segmented by TxFlags. One or more peers will validate a certain subset of transactions within a block. If two peers, say, validate the same set of transactions and come up with the exact same results then both of the results will be added to the same segment under the block.
type Results ¶
type Results struct { BlockNumber uint64 TxFlags txflags.ValidationFlags TxIDs []string Err string Endpoint string // Endpoint is the endpoint of the peer that provided the results. Local bool // If true then that means the results were generated locally and policy validation is not required MSPID string Signature []byte Identity []byte }
Results contains the validation results for the given block number.
Click to show internal directories.
Click to hide internal directories.