This commit is contained in:
David Hill 2014-07-07 11:07:30 -04:00
parent 879d69d040
commit d31183ff19

View file

@ -109,10 +109,10 @@ func (db *LevelDb) getTxFullySpent(txsha *btcwire.ShaHash) ([]*spentTx, error) {
for i := range spentTxList { for i := range spentTxList {
offset := i * 20 offset := i * 20
blkHeight := binary.LittleEndian.Uint64(buf[offset:offset+8]) blkHeight := binary.LittleEndian.Uint64(buf[offset : offset+8])
txOff := binary.LittleEndian.Uint32(buf[offset+8:offset+12]) txOff := binary.LittleEndian.Uint32(buf[offset+8 : offset+12])
txLen := binary.LittleEndian.Uint32(buf[offset+12:offset+16]) txLen := binary.LittleEndian.Uint32(buf[offset+12 : offset+16])
numTxO := binary.LittleEndian.Uint32(buf[offset+16:offset+20]) numTxO := binary.LittleEndian.Uint32(buf[offset+16 : offset+20])
sTx := spentTx{ sTx := spentTx{
blkHeight: int64(blkHeight), blkHeight: int64(blkHeight),