block_rpc_server

package
v0.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStore

type BlockStore struct {
	// contains filtered or unexported fields
}

BlockStore implements the BlockStore RPC service.

func NewBlockStore

func NewBlockStore(store block.StoreOps) *BlockStore

NewBlockStore constructs a new BlockStore from a Store.

func (*BlockStore) GetBlock

GetBlock returns a block from the store.

func (*BlockStore) GetBlockExists

GetBlockExists checks if the block exists in the store.

func (*BlockStore) GetBlockExistsBatch

GetBlockExistsBatch checks if blocks exist in the store.

func (*BlockStore) GetHashType

GetHashType returns the preferred hash type for the store.

func (*BlockStore) GetSupportedFeatures

GetSupportedFeatures returns the native feature bitmask for the store.

func (*BlockStore) PutBlock

PutBlock stores a block into the store.

func (*BlockStore) PutBlockBatch

PutBlockBatch stores blocks into the store as a batch.

func (*BlockStore) RmBlock

RmBlock removes the block from the store.

func (*BlockStore) StatBlock

StatBlock returns metadata about a block without reading its data.

func (*BlockStore) Sync added in v0.52.0

Sync drains buffered writes and blocks until prior writes are durable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL