Change OutPoint index encoding to little-endian to match Bitcoin
This commit is contained in:
parent
119a03a3ca
commit
856e3a320d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ func OutPointToFilterEntry(outpoint wire.OutPoint) []byte {
|
||||||
// Size of the hash plus size of int32 index
|
// Size of the hash plus size of int32 index
|
||||||
data := make([]byte, chainhash.HashSize+4)
|
data := make([]byte, chainhash.HashSize+4)
|
||||||
copy(data[:], outpoint.Hash.CloneBytes()[:])
|
copy(data[:], outpoint.Hash.CloneBytes()[:])
|
||||||
binary.BigEndian.PutUint32(data[chainhash.HashSize:], outpoint.Index)
|
binary.LittleEndian.PutUint32(data[chainhash.HashSize:], outpoint.Index)
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue