MCPcopy Create free account
hub / github.com/copernet/copernicus / IsPushOnly

Method IsPushOnly

model/script/script.go:650–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

648}
649
650func (s *Script) IsPushOnly() bool {
651 if s.badOpCode {
652 return false
653 }
654 for _, ops := range s.ParsedOpCodes {
655 if ops.OpValue > opcodes.OP_16 {
656 return false
657 }
658 }
659 return true
660
661}
662
663func (s *Script) GetSigOpCount(flags uint32, accurate bool) int {
664 n := 0

Callers 5

TestScriptStandardPushFunction · 0.80
VerifyScriptFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestScriptStandardPushFunction · 0.64