erigon-pulse/cmd/restapi/main.go
Alex Sharov 1dcc2b141a
Rpcdaemon as lib (#940)
* share config object

* create default config and logger

* move db connection to common func

* move server start to cli package

* clear

* clear

* rename cli to rpc

* use unified SetupLogger func

* make all root flag persistent

* use common flags in different packages

* use common flags in different packages

* move TraceTx method to eth package

* use native slice flags

* create package "turbo"

* disable geth api

* disable geth api

* move more data types to turbo/adapter package

* add support for customApiList

* run more

* run more

* run more

* dog-food

* move DoCall

* move DoCall

* fix tests

* fix test
2020-08-19 12:46:20 +01:00

20 lines
375 B
Go

package main
import (
"fmt"
"os"
"github.com/ledgerwatch/turbo-geth/cmd/restapi/commands"
"github.com/ledgerwatch/turbo-geth/cmd/utils"
"github.com/ledgerwatch/turbo-geth/log"
)
func main() {
log.SetupDefaultTerminalLogger(log.LvlInfo, "", "")
if err := commands.RootCommand().ExecuteContext(utils.RootContext()); err != nil {
fmt.Println(err)
os.Exit(1)
}
}