Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #26 from spacemeshos/fix-win-build
Browse files Browse the repository at this point in the history
remove windoz crashing syscall check on startup
  • Loading branch information
avive authored May 25, 2021
2 parents 86faa70 + 4c396f5 commit a02b31a
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,11 @@ import (
"flag"
"fmt"
"os"
"syscall"

"github.com/spacemeshos/CLIWallet/client"
"github.com/spacemeshos/CLIWallet/common"
"github.com/spacemeshos/CLIWallet/repl"
)

type mockClient struct {
}

func (m mockClient) LocalAccount() *common.LocalAccount {
return nil
}

func (m mockClient) AccountInfo(id string) {

}
func (m mockClient) Transfer(from, to, amount, passphrase string) error {
return nil
}

func main() {

var (
Expand All @@ -42,13 +26,7 @@ func main() {

flag.Parse()

_, err := syscall.Open("/dev/tty", syscall.O_RDONLY, 0)
if err != nil {
println(err)
os.Exit(1)
}

be, err = client.OpenConnection(grpcServer, secureConnection, dataDir)
be, err := client.OpenConnection(grpcServer, secureConnection, dataDir)
if err != nil {
os.Exit(1)
}
Expand Down

0 comments on commit a02b31a

Please sign in to comment.