clean up formatting

This commit is contained in:
Tim Williams 2018-08-13 14:45:01 -04:00
parent 2432128b60
commit 0424770010

View file

@ -4,19 +4,19 @@ package main
//to run server 'go run shyftRingWalletConn/*.go'
import (
"bufio"
"context"
"fmt"
"github.com/ShyftNetwork/go-empyrean/common"
"github.com/ShyftNetwork/go-empyrean/common/hexutil"
"github.com/ShyftNetwork/go-empyrean/core/types"
"github.com/ShyftNetwork/go-empyrean/crypto"
"github.com/ShyftNetwork/go-empyrean/ethclient"
"github.com/ShyftNetwork/go-empyrean/rlp"
"io"
"net"
"net/http"
"os"
"github.com/ShyftNetwork/go-empyrean/ethclient"
"github.com/ShyftNetwork/go-empyrean/common"
"context"
"sync"
"github.com/ShyftNetwork/go-empyrean/core/types"
"github.com/ShyftNetwork/go-empyrean/rlp"
)
const (
@ -66,7 +66,6 @@ func handleRequest(conn net.Conn) {
checkBalanceChan := make(chan []byte)
sendTransactionChan := make(chan []byte)
go readerConn(conn, messages)
go handleMessages(messages, checkBalanceChan, sendTransactionChan)
go checkBalance(checkBalanceChan, conn)
@ -168,7 +167,6 @@ func checkBalance(checkBalanceChan chan []byte, conn net.Conn) {
address := <-checkBalanceChan
fmt.Println("the address is ", string(address[:]))
balance, error := c.BalanceAt(context.Background(), common.HexToAddress(string(address[:])), nil)
if error != nil {
fmt.Println("Balance at error ", error)