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

     1  package storage
     2  
     3  import (
     4  	"github.com/onflow/flow-go/model/flow"
     5  )
     6  
     7  // Transactions represents persistent storage for transactions.
     8  type Transactions interface {
     9  
    10  	// Store inserts the transaction, keyed by fingerprint. Duplicate transaction insertion is ignored
    11  	Store(tx *flow.TransactionBody) error
    12  
    13  	// ByID returns the transaction for the given fingerprint.
    14  	ByID(txID flow.Identifier) (*flow.TransactionBody, error)
    15  }