add missing Lock to FetchTxBySha

This commit is contained in:
David Hill 2014-05-30 15:03:39 -04:00
parent 75e199ece8
commit b40f5a1b24

View file

@ -369,6 +369,9 @@ func (db *LevelDb) fetchTxDataByLoc(blkHeight int64, txOff int, txLen int, txspe
// FetchTxBySha returns some data for the given Tx Sha.
func (db *LevelDb) FetchTxBySha(txsha *btcwire.ShaHash) ([]*btcdb.TxListReply, error) {
db.dbLock.Lock()
defer db.dbLock.Unlock()
replylen := 0
replycnt := 0