mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +00:00
16 lines
340 B
Go
16 lines
340 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"github.com/CityOfZion/neo-go/pkg/chain"
|
||
|
"github.com/CityOfZion/neo-go/pkg/database"
|
||
|
"github.com/CityOfZion/neo-go/pkg/wire/protocol"
|
||
|
)
|
||
|
|
||
|
func setupChain(db database.Database, net protocol.Magic) (*chain.Chain, error) {
|
||
|
chain, err := chain.New(db, net)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return chain, nil
|
||
|
}
|