goimports -w .

This commit is contained in:
Tomás Senart 2014-07-02 18:04:59 +02:00 committed by Dave Collins
parent 73ed07bd85
commit 4772d4a1a4
19 changed files with 46 additions and 27 deletions

View file

@ -6,6 +6,7 @@ package btcchain
import (
"fmt"
"github.com/conformal/btcutil"
)

View file

@ -8,14 +8,15 @@ import (
"container/list"
"errors"
"fmt"
"github.com/conformal/btcdb"
"github.com/conformal/btcnet"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"math/big"
"sort"
"sync"
"time"
"github.com/conformal/btcdb"
"github.com/conformal/btcnet"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
)
const (

View file

@ -5,11 +5,12 @@
package btcchain_test
import (
"testing"
"github.com/conformal/btcchain"
"github.com/conformal/btcnet"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"testing"
)
// TestHaveBlock tests the HaveBlock API to ensure proper functionality.

View file

@ -6,6 +6,7 @@ package btcchain
import (
"fmt"
"github.com/conformal/btcnet"
"github.com/conformal/btcscript"
"github.com/conformal/btcutil"

View file

@ -6,14 +6,15 @@ package btcchain_test
import (
"fmt"
"os"
"path/filepath"
"github.com/conformal/btcchain"
"github.com/conformal/btcdb"
_ "github.com/conformal/btcdb/ldb"
_ "github.com/conformal/btcdb/memdb"
"github.com/conformal/btcnet"
"github.com/conformal/btcutil"
"os"
"path/filepath"
)
// testDbType is the database backend type to use for the tests.

View file

@ -6,9 +6,10 @@ package btcchain
import (
"fmt"
"github.com/conformal/btcwire"
"math/big"
"time"
"github.com/conformal/btcwire"
)
const (

View file

@ -5,9 +5,10 @@
package btcchain_test
import (
"github.com/conformal/btcchain"
"math/big"
"testing"
"github.com/conformal/btcchain"
)
func TestBigToCompact(t *testing.T) {

View file

@ -5,8 +5,9 @@
package btcchain_test
import (
"github.com/conformal/btcchain"
"testing"
"github.com/conformal/btcchain"
)
// TestErrorCodeStringer tests the stringized output for the ErrorCode type.

View file

@ -12,8 +12,9 @@ interface. The functions are only exported while the tests are being run.
package btcchain
import (
"github.com/conformal/btcutil"
"time"
"github.com/conformal/btcutil"
)
// TstSetCoinbaseMaturity makes the ability to set the coinbase maturity

3
log.go
View file

@ -6,8 +6,9 @@ package btcchain
import (
"errors"
"github.com/conformal/btclog"
"io"
"github.com/conformal/btclog"
)
// log is a logger that is initialized with no output filters. This

View file

@ -5,9 +5,10 @@
package btcchain
import (
"math"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"math"
)
// nextPowerOfTwo returns the next highest power of two from a given number if

View file

@ -5,9 +5,10 @@
package btcchain_test
import (
"testing"
"github.com/conformal/btcchain"
"github.com/conformal/btcutil"
"testing"
)
// TestMerkle tests the BuildMerkleTreeStore API.

View file

@ -6,6 +6,7 @@ package btcchain
import (
"fmt"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
)

View file

@ -7,14 +7,15 @@ package btcchain_test
import (
"compress/bzip2"
"encoding/binary"
"github.com/conformal/btcchain"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"io"
"os"
"path/filepath"
"strings"
"testing"
"github.com/conformal/btcchain"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
)
// TestReorganization loads a set of test blocks which force a chain

View file

@ -6,11 +6,12 @@ package btcchain
import (
"fmt"
"math"
"runtime"
"github.com/conformal/btcscript"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"math"
"runtime"
)
// txValidateItem holds a transaction along with which input to validate.

View file

@ -5,11 +5,12 @@
package btcchain_test
import (
"github.com/conformal/btcchain"
"reflect"
"sort"
"testing"
"time"
"github.com/conformal/btcchain"
)
// TestTimeSorter tests the timeSorter implementation.

View file

@ -6,6 +6,7 @@ package btcchain
import (
"fmt"
"github.com/conformal/btcdb"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"

View file

@ -7,14 +7,15 @@ package btcchain
import (
"encoding/binary"
"fmt"
"math"
"math/big"
"time"
"github.com/conformal/btcdb"
"github.com/conformal/btcnet"
"github.com/conformal/btcscript"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"math"
"math/big"
"time"
)
const (

View file

@ -5,14 +5,15 @@
package btcchain_test
import (
"github.com/conformal/btcchain"
"github.com/conformal/btcnet"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"math"
"reflect"
"testing"
"time"
"github.com/conformal/btcchain"
"github.com/conformal/btcnet"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
)
// TestCheckConnectBlock tests the CheckConnectBlock function to ensure it