MCPcopy Create free account
hub / github.com/chain/txvm / WithStore

Function WithStore

protocol/prottest/block.go:29–31  ·  view source on GitHub ↗

WithStore is an option for NewChain that sets the Chain object's protocol.Store.

(store protocol.Store)

Source from the content-addressed store, hash-verified

27// WithStore is an option for NewChain that sets the Chain object's
28// protocol.Store.
29func WithStore(store protocol.Store) Option {
30 return func(_ testing.TB, conf *config) { conf.store = store }
31}
32
33// WithOutputIDs is an option for NewChain that prepopulates the
34// blockchain's utxo set with the given hashes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected