github.com/koko1123/flow-go-1@v0.29.6/cmd/verification/main.go (about) 1 package main 2 3 import ( 4 "github.com/koko1123/flow-go-1/cmd" 5 "github.com/koko1123/flow-go-1/model/flow" 6 ) 7 8 func main() { 9 verificationBuilder := cmd.NewVerificationNodeBuilder( 10 cmd.FlowNode(flow.RoleVerification.String())) 11 verificationBuilder.LoadFlags() 12 13 if err := verificationBuilder.FlowNodeBuilder.Initialize(); err != nil { 14 verificationBuilder.FlowNodeBuilder.Logger.Fatal().Err(err).Send() 15 } 16 17 verificationBuilder.LoadComponentsAndModules() 18 19 node, err := verificationBuilder.FlowNodeBuilder.Build() 20 if err != nil { 21 verificationBuilder.FlowNodeBuilder.Logger.Fatal().Err(err).Send() 22 } 23 node.Run() 24 }