Skip to content

Commit b6bf2ce

Browse files
committed
fixed spent outpoint serialisation for spent index/filter
removed unnecessary logging
1 parent f687a59 commit b6bf2ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/cfilter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ func SerialiseToOutpoint(utxo types.UTXO) ([]byte, error) {
129129
// err is always nil
130130
buf.Write(common.ReverseBytes(txidBytes))
131131

132-
binary.Write(&buf, binary.LittleEndian, utxo.Value)
132+
binary.Write(&buf, binary.LittleEndian, utxo.Vout)
133133
return buf.Bytes(), err
134134
}

src/server/middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func FetchHeaderInvMiddleware(c *gin.Context) {
3232
c.Abort()
3333
return
3434
}
35-
common.InfoLogger.Printf("%v\n", headerInv)
35+
3636
// Store headerInv in Gin context
3737
c.Set("headerInv", headerInv)
3838
c.Next()

0 commit comments

Comments
 (0)