mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-13 11:35:52 +01:00
Merge ae5efa5e51
into 6afce8d608
This commit is contained in:
commit
2a9c8eed14
1 changed files with 2 additions and 2 deletions
|
@ -865,10 +865,10 @@ func popIfBool(vm *Engine) (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
// The top element MUST have a length of at least one.
|
||||
// The top element MUST have a length of at most one.
|
||||
if len(so) > 1 {
|
||||
str := fmt.Sprintf("minimal if is active, top element MUST "+
|
||||
"have a length of at least, instead length is %v",
|
||||
"have a length of at most 1, instead length is %v",
|
||||
len(so))
|
||||
return false, scriptError(ErrMinimalIf, str)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue