Documentation
¶
Overview ¶
Package bolt provides a bbolt-based implementation of the blockchain Storage interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bolt ¶
type Bolt struct {
// contains filtered or unexported fields
}
Bolt implements the Storage interface using a bbolt database.
func (*Bolt) ForEach ¶
ForEach returns an iterator that traverses blocks in ascending numerical order. Each `Next()` call will open its own short-lived read transaction, fetch exactly one block, close that transaction, and return the block. If the block does not exist, `Next()` sets `done = true`.
Click to show internal directories.
Click to hide internal directories.