Merge pull request #122 from zcash-hackworks/run-gofmt

run gofmt on all files (one-time)
This commit is contained in:
Larry Ruane 2019-10-30 13:10:57 -06:00 committed by GitHub
commit 5134a4b4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 51 additions and 53 deletions

View File

@ -8,13 +8,13 @@ import (
"flag"
"fmt"
"os"
"time"
"strconv"
"strings"
"time"
"github.com/pkg/errors"
"github.com/btcsuite/btcd/rpcclient"
"github.com/golang/protobuf/proto"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/zcash-hackworks/lightwalletd/frontend"
@ -110,7 +110,6 @@ func main() {
height = 0
}
//ingest from Sapling testnet height
if height < 280000 {
height = 280000
@ -216,7 +215,6 @@ func getBlock(rpcClient *rpcclient.Client, height int) (*parser.Block, error) {
return block, nil
}
func handleBlock(db *sql.DB, block *parser.Block) {
prevBlockHash := hex.EncodeToString(block.GetPrevHash())
blockHash := hex.EncodeToString(block.GetEncodableHash())

View File

@ -3,9 +3,9 @@ package main
import (
"context"
"flag"
"fmt"
"net"
"os"
"fmt"
"os/signal"
"syscall"
"time"
@ -126,7 +126,7 @@ func main() {
if !fileExists(opts.logPath) {
os.OpenFile(opts.logPath, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666)
}
if (opts.veryInsecure && (filename == opts.tlsCertPath || filename == opts.tlsKeyPath)) {
if opts.veryInsecure && (filename == opts.tlsCertPath || filename == opts.tlsKeyPath) {
continue
}
if !fileExists(filename) {