github.com/koko1123/flow-go-1@v0.29.6/storage/transactions.go (about) 1 package storage 2 3 import ( 4 "github.com/koko1123/flow-go-1/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 }