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

remove windoz crashing syscall check on startup #26

Merged
merged 1 commit into from
May 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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