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