Skip to content

Commit

Permalink
fix exit on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
iszubok committed Dec 5, 2024
1 parent 8ecb438 commit 40288ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"math/big"
"os"
"os/signal"
"strings"

"github.com/ethereum/go-ethereum/crypto"
Expand Down Expand Up @@ -64,6 +65,10 @@ func Execute() {
config := server.NewConfig(*netnameFlag, *symbolFlag, *httpPortFlag, *intervalFlag, *proxyCntFlag, *payoutFlag, *hcaptchaSiteKeyFlag, *hcaptchaSecretFlag, *logoFlag, *backgroundFlag)
go server.NewServer(txBuilder, config).Run()

c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c

}
func getPrivateKeyFromFlags() (*ecdsa.PrivateKey, error) {
if *privKeyFlag != "" {
Expand Down

0 comments on commit 40288ba

Please sign in to comment.