forked from iotaledger/hornet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
46 lines (39 loc) · 1.07 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
package main
import (
"net/http"
_ "net/http/pprof"
"runtime"
"github.com/gohornet/hornet/packages/node"
"github.com/gohornet/hornet/plugins/cli"
"github.com/gohornet/hornet/plugins/gossip"
"github.com/gohornet/hornet/plugins/gracefulshutdown"
"github.com/gohornet/hornet/plugins/metrics"
"github.com/gohornet/hornet/plugins/monitor"
"github.com/gohornet/hornet/plugins/snapshot"
"github.com/gohornet/hornet/plugins/spa"
"github.com/gohornet/hornet/plugins/spammer"
"github.com/gohornet/hornet/plugins/tangle"
"github.com/gohornet/hornet/plugins/tipselection"
"github.com/gohornet/hornet/plugins/webapi"
"github.com/gohornet/hornet/plugins/zeromq"
)
func main() {
cli.PrintVersion()
runtime.SetMutexProfileFraction(5)
runtime.SetBlockProfileRate(5)
go http.ListenAndServe("localhost:6060", nil) // pprof Server for Debbuging Mutexes
node.Run(
cli.PLUGIN,
gracefulshutdown.PLUGIN,
gossip.PLUGIN,
tangle.PLUGIN,
tipselection.PLUGIN,
metrics.PLUGIN,
snapshot.PLUGIN,
webapi.PLUGIN,
spa.PLUGIN,
zeromq.PLUGIN,
monitor.PLUGIN,
spammer.PLUGIN,
)
}