MCPcopy Index your code
hub / github.com/btcsuite/btcd / Depth

Method Depth

txscript/stack.go:44–46  ·  view source on GitHub ↗

Depth returns the number of items on the stack.

()

Source from the content-addressed store, hash-verified

42
43// Depth returns the number of items on the stack.
44func (s *stack) Depth() int32 {
45 return int32(len(s.stk))
46}
47
48// PushByteArray adds the given back array to the top of the stack.
49//

Callers 9

TestStackFunction · 0.95
ReadXPubFunction · 0.45
verifyWitnessProgramMethod · 0.45
CheckErrorConditionMethod · 0.45
StepMethod · 0.45
ExecuteMethod · 0.45
getStackFunction · 0.45
setStackFunction · 0.45
opcodeDepthFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestStackFunction · 0.76