This commit is contained in:
Dave Collins 2013-10-13 13:02:45 -05:00
parent 1f87ee217a
commit 2ec9511891
3 changed files with 5 additions and 6 deletions

View File

@ -10,10 +10,10 @@ import (
"github.com/conformal/btcdb" "github.com/conformal/btcdb"
"github.com/conformal/btcutil" "github.com/conformal/btcutil"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"github.com/conformal/seelog"
"github.com/conformal/goleveldb/leveldb" "github.com/conformal/goleveldb/leveldb"
"github.com/conformal/goleveldb/leveldb/cache" "github.com/conformal/goleveldb/leveldb/cache"
"github.com/conformal/goleveldb/leveldb/opt" "github.com/conformal/goleveldb/leveldb/opt"
"github.com/conformal/seelog"
"os" "os"
"runtime" "runtime"
"sync" "sync"

View File

@ -308,7 +308,6 @@ func (db *SqliteDb) FetchTxBySha(txsha *btcwire.ShaHash) ([]*btcdb.TxListReply,
txc.blksha = *blksha txc.blksha = *blksha
db.insertTxCache(&txc) db.insertTxCache(&txc)
btxspent := make([]bool, len(tx.TxOut), len(tx.TxOut)) btxspent := make([]bool, len(tx.TxOut), len(tx.TxOut))
for idx := range tx.TxOut { for idx := range tx.TxOut {
byteidx := idx / 8 byteidx := idx / 8