Commit 2b1ca298 authored by David Vorick's avatar David Vorick

switch to vendored database

parent 15214fad
......@@ -9,7 +9,7 @@ dependencies:
go get -u github.com/NebulousLabs/demotemutex
go get -u github.com/NebulousLabs/ed25519
go get -u github.com/NebulousLabs/merkletree
go get -u github.com/boltdb/bolt
go get -u github.com/NebulousLabs/bolt
go get -u github.com/dchest/blake2b
go get -u golang.org/x/crypto/twofish
# Module + Daemon Dependencies
......
......@@ -4,11 +4,11 @@ import (
"errors"
"time"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
var (
......
......@@ -4,11 +4,11 @@ package consensus
// There is an assumption that the transaction has already been verified.
import (
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
// applySiacoinInputs takes all of the siacoin inputs in a transaction and
......
......@@ -9,13 +9,13 @@ package consensus
import (
"errors"
"github.com/NebulousLabs/demotemutex"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/persist"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
"github.com/NebulousLabs/demotemutex"
)
var (
......
......@@ -5,12 +5,12 @@ import (
"errors"
"fmt"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
// manageErr handles an error detected by the consistency checks.
......
package consensus
import (
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/bolt"
)
// dbConsensusChecksum is a convenience function to call consensusChecksum
......
......@@ -13,13 +13,13 @@ package consensus
import (
"errors"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/persist"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
var (
......
......@@ -4,10 +4,10 @@ package consensus
// compatibility with the test suite.
import (
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
// dbBlockHeight is a convenience function allowing blockHeight to be called
......
......@@ -3,12 +3,12 @@ package consensus
import (
"errors"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
var (
......
......@@ -3,10 +3,10 @@ package consensus
import (
"testing"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
// TestCommitDelayedSiacoinOutputDiffBadMaturity commits a delayed sicoin
......
......@@ -3,10 +3,10 @@ package consensus
import (
"errors"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/bolt"
)
var (
......
package consensus
import (
"github.com/boltdb/bolt"
"github.com/NebulousLabs/bolt"
)
// dbBacktrackToCurrentPath is a convenience function to call
......
......@@ -3,12 +3,12 @@ package consensus
import (
"errors"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
var (
......
......@@ -4,7 +4,7 @@ package consensus
import (
"testing"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/bolt"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
......
......@@ -5,10 +5,10 @@ import (
"os"
"path/filepath"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
const (
......
......@@ -4,13 +4,13 @@ import (
"math/big"
"sort"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
// SurpassThreshold is a percentage that dictates how much heavier a competing
......
package consensus
import (
// "math/big"
"path/filepath"
"testing"
......
......@@ -3,11 +3,11 @@ package consensus
import (
"errors"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
// A changeEntry records a change to the consensus set that happened, and is
......
package consensus
import (
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
const (
......
......@@ -4,9 +4,9 @@ import (
"testing"
"time"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
// TestSynchronize tests that the consensus set can successfully synchronize
......
......@@ -4,13 +4,13 @@ import (
"errors"
"math/big"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
var (
......
......@@ -10,7 +10,7 @@ import (
"github.com/NebulousLabs/Sia/persist"
"github.com/NebulousLabs/Sia/types"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/bolt"
)
// A boltTx is a bolt transaction. It implements monadic error handling, such that
......
......@@ -7,7 +7,8 @@ import (
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/persist"
"github.com/NebulousLabs/Sia/types"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/bolt"
)
/*
......
......@@ -4,12 +4,12 @@ import (
"bytes"
"errors"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/types"
"github.com/NebulousLabs/bolt"
)
const (
......
......@@ -4,7 +4,7 @@ import (
"errors"
"time"
"github.com/boltdb/bolt"
"github.com/NebulousLabs/bolt"
)
type BoltDatabase struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment