github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/payloads.go (about)

     1  package storage
     2  
     3  import (
     4  	"github.com/onflow/flow-go/model/flow"
     5  )
     6  
     7  // Payloads represents persistent storage for payloads.
     8  type Payloads interface {
     9  
    10  	// Store will store a payload and index its contents.
    11  	Store(blockID flow.Identifier, payload *flow.Payload) error
    12  
    13  	// ByBlockID returns the payload with the given hash. It is available for
    14  	// finalized and ambiguous blocks.
    15  	ByBlockID(blockID flow.Identifier) (*flow.Payload, error)
    16  }