MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewChain

Function NewChain

blockproducer/chain.go:102–104  ·  view source on GitHub ↗

NewChain creates a new blockchain.

(cfg *Config)

Source from the content-addressed store, hash-verified

100
101// NewChain creates a new blockchain.
102func NewChain(cfg *Config) (c *Chain, err error) {
103 return NewChainWithContext(context.Background(), cfg)
104}
105
106// NewChainWithContext creates a new blockchain with context.
107func NewChainWithContext(ctx context.Context, cfg *Config) (c *Chain, err error) {

Callers 1

TestChainFunction · 0.70

Calls 1

NewChainWithContextFunction · 0.70

Tested by 1

TestChainFunction · 0.56