opcodeFalse pushes an empty array to the data stack to represent false. Note that 0, when encoded as a number according to the numeric encoding consensus rules, is an empty array.
(op *opcode, data []byte, vm *Engine)
| 786 | // that 0, when encoded as a number according to the numeric encoding consensus |
| 787 | // rules, is an empty array. |
| 788 | func opcodeFalse(op *opcode, data []byte, vm *Engine) error { |
| 789 | vm.dstack.PushByteArray(nil) |
| 790 | return nil |
| 791 | } |
| 792 | |
| 793 | // opcodePushData is a common handler for the vast majority of opcodes that push |
| 794 | // raw data (bytes) to the data stack. |
nothing calls this directly
no test coverage detected
searching dependent graphs…