github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/cmd/verification/main.go (about) 1 package main 2 3 import ( 4 "github.com/onflow/flow-go/cmd" 5 "github.com/onflow/flow-go/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 }