Documentation ¶
Index ¶
- func AllMalicious(db sql.Executor) ([]types.NodeID, error)
- func GetBlobSizes(db sql.Executor, ids [][]byte) (sizes []int, err error)
- func IsMalicious(db sql.Executor, nodeID types.NodeID) (bool, error)
- func IterateOps(db sql.Executor, operations builder.Operations, ...) error
- func LoadMalfeasanceBlob(_ context.Context, db sql.Executor, nodeID []byte, blob *sql.Blob) error
- func SetMalicious(db sql.Executor, nodeID types.NodeID, proof []byte, received time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllMalicious ¶ added in v1.7.5
AllMalicious retrieves malicious node IDs from the database.
func GetBlobSizes ¶ added in v1.4.1
GetBlobSizes returns the sizes of the blobs corresponding to malfeasance proofs for the specified identities. For non-existent proofs, the corresponding items are set to -1.
func IsMalicious ¶
IsMalicious returns true if identity is known to be malicious.
func IterateOps ¶ added in v1.7.5
func LoadMalfeasanceBlob ¶ added in v1.4.1
LoadMalfeasanceBlob returns the malfeasance proof in raw bytes for the given identity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.