Go fmt new utils.
This commit is contained in:
parent
96b92552b9
commit
fd4b63073f
3 changed files with 34 additions and 36 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2013 Conformal Systems LLC.
|
||||
*/
|
||||
// Copyright (c) 2013 Conformal Systems LLC.
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
|
||||
|
@ -9,9 +9,9 @@ import (
|
|||
"flag"
|
||||
"fmt"
|
||||
"github.com/conformal/btcdb"
|
||||
"github.com/conformal/btcutil"
|
||||
_ "github.com/conformal/btcdb/sqlite3"
|
||||
_ "github.com/conformal/btcdb/ldb"
|
||||
_ "github.com/conformal/btcdb/sqlite3"
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/conformal/seelog"
|
||||
"io"
|
||||
|
|
|
@ -110,7 +110,6 @@ func getSha(db btcdb.Db, str string) (btcwire.ShaHash, error) {
|
|||
return *sha, nil
|
||||
}
|
||||
|
||||
|
||||
var ntxcnt int64
|
||||
var txspendcnt int64
|
||||
var txgivecnt int64
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"flag"
|
||||
"fmt"
|
||||
"github.com/conformal/btcdb"
|
||||
_ "github.com/conformal/btcdb/sqlite3"
|
||||
_ "github.com/conformal/btcdb/ldb"
|
||||
_ "github.com/conformal/btcdb/sqlite3"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/conformal/seelog"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
|
@ -76,7 +76,6 @@ func main() {
|
|||
}
|
||||
dbPath := filepath.Join(datadir, dbName)
|
||||
|
||||
|
||||
log.Infof("loading db %v", dbType)
|
||||
db, err := btcdb.OpenDB(dbType, dbPath)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue