Skip to content

Commit a9dfa11

Browse files
authored
Hotfix: CLTV locktime decoding (#513)
1 parent bc81108 commit a9dfa11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/tree/script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ func (d *CLTVMultisigClosure) Decode(script []byte) (bool, error) {
811811

812812
var locktimeValue uint32
813813
// read uint32 from bytes
814-
if len(locktime) >= 3 {
814+
if len(locktime) > 3 {
815815
locktimeValue = binary.LittleEndian.Uint32(locktime)
816816
} else {
817817
locktimeValue = uint32(binary.LittleEndian.Uint16(locktime))

0 commit comments

Comments
 (0)