pub trait Decidable {
    fn id(&self) -> Id;
    fn status(&self) -> Status;
    fn accept(&mut self) -> Result<()>;
    fn reject(&mut self) -> Result<()>;
}
Expand description

Represents an element that can be decided. Decidable objects are transactions, blocks, or vertices. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/snow/choices#Decidable

Required Methods

Returns the ID of this block’s parent.

Returns the current status.

Accepts this element.

Rejects this element.

Implementors