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

Method IsUnspendable

model/script/script.go:646–648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644}
645
646func (s *Script) IsUnspendable() bool {
647 return (s.Size() > 0 && s.data[0] == opcodes.OP_RETURN) || s.Size() > MaxScriptSize
648}
649
650func (s *Script) IsPushOnly() bool {
651 if s.badOpCode {

Callers 4

GetDustThresholdMethod · 0.80
ScriptToAsmStrFunction · 0.80

Calls 1

SizeMethod · 0.95

Tested by 2