Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
646
func
(s *Script) IsUnspendable() bool {
647
return
(s.Size() > 0 && s.data[0] == opcodes.OP_RETURN) || s.Size() > MaxScriptSize
648
}
649
650
func
(s *Script) IsPushOnly() bool {
651
if
s.badOpCode {
Callers
4
GetDustThreshold
Method · 0.80
TestTxOut_UnspendableOpReturnScript
Function · 0.80
TestTxOut_ScriptSizeTooLarge
Function · 0.80
ScriptToAsmStr
Function · 0.80
Calls
1
Size
Method · 0.95
Tested by
2
TestTxOut_UnspendableOpReturnScript
Function · 0.64
TestTxOut_ScriptSizeTooLarge
Function · 0.64