pub struct ClarityBlockConnection<'a> { /* private fields */ }
Expand description

A high-level interface for Clarity VM interactions within a single block.

Implementations

Reset the block’s total execution to the given cost, if there is a cost tracker at all. Used by the miner to “undo” applying a transaction that exceeded the budget.

Get the current cost so far

Rolls back all changes in the current block by (1) dropping all writes from the current MARF tip, (2) rolling back side-storage

Commits all changes in the current block by (1) committing the current MARF tip to storage, (2) committing side-storage. Commits all changes in the current block by (1) committing the current MARF tip to storage, (2) committing side-storage. Commits to a different block hash than the one opened (i.e. since the caller may not have known the “real” block hash at the time of opening).

Commits all changes in the current block by (1) committing the current MARF tip to storage, (2) committing side-storage. before this saves, it updates the metadata headers in the sidestore so that they don’t get stepped on after a miner re-executes a constructed block.

Trait Implementations

Do something with ownership of the underlying DB that involves only reading.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more