Terra support enabled in production mode (#173)

* Terra support enabled in production mode
This commit is contained in:
Yuriy Savchenko 2021-02-04 12:26:01 +02:00 committed by GitHub
parent 075658922f
commit f36ecc34f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -3,14 +3,15 @@ package guardiand
import (
"context"
"fmt"
solana_types "github.com/dfuse-io/solana-go"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp"
"net/http"
_ "net/http/pprof"
"os"
"syscall"
solana_types "github.com/dfuse-io/solana-go"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp"
eth_common "github.com/ethereum/go-ethereum/common"
ethcrypto "github.com/ethereum/go-ethereum/crypto"
"github.com/libp2p/go-libp2p-core/crypto"
@ -277,10 +278,6 @@ func runBridge(cmd *cobra.Command, args []string) {
}
if *terraSupport {
if !*unsafeDevMode {
logger.Fatal("cannot enable terra support in production mode")
}
if *terraWS == "" {
logger.Fatal("Please specify --terraWS")
}