forked from iotaledger/wasp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
57 lines (53 loc) · 1.52 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package main
import (
"github.com/iotaledger/hive.go/node"
"github.com/iotaledger/wasp/packages/parameters"
_ "github.com/iotaledger/wasp/packages/vm/sandbox"
"github.com/iotaledger/wasp/plugins/banner"
"github.com/iotaledger/wasp/plugins/chains"
"github.com/iotaledger/wasp/plugins/cli"
"github.com/iotaledger/wasp/plugins/config"
"github.com/iotaledger/wasp/plugins/dashboard"
"github.com/iotaledger/wasp/plugins/database"
"github.com/iotaledger/wasp/plugins/dkg"
"github.com/iotaledger/wasp/plugins/downloader"
"github.com/iotaledger/wasp/plugins/gracefulshutdown"
"github.com/iotaledger/wasp/plugins/logger"
"github.com/iotaledger/wasp/plugins/metrics"
"github.com/iotaledger/wasp/plugins/nodeconn"
"github.com/iotaledger/wasp/plugins/peering"
"github.com/iotaledger/wasp/plugins/processors"
"github.com/iotaledger/wasp/plugins/profiling"
"github.com/iotaledger/wasp/plugins/publishernano"
"github.com/iotaledger/wasp/plugins/registry"
"github.com/iotaledger/wasp/plugins/wasmtimevm"
"github.com/iotaledger/wasp/plugins/webapi"
)
func main() {
params := parameters.Init()
registry.InitFlags()
plugins := node.Plugins(
banner.Init(),
config.Init(params),
logger.Init(params),
gracefulshutdown.Init(),
downloader.Init(),
cli.Init(),
database.Init(),
registry.Init(),
peering.Init(),
dkg.Init(),
nodeconn.Init(),
processors.Init(),
wasmtimevm.Init(),
chains.Init(),
metrics.Init(),
webapi.Init(),
publishernano.Init(),
dashboard.Init(),
profiling.Init(),
)
node.Run(
plugins,
)
}