MCPcopy Create free account
hub / github.com/chain/Core / stackCost

Function stackCost

protocol/vm/vm.go:211–217  ·  view source on GitHub ↗
(stack [][]byte)

Source from the content-addressed store, hash-verified

209}
210
211func stackCost(stack [][]byte) int64 {
212 result := int64(8 * len(stack))
213 for _, item := range stack {
214 result += int64(len(item))
215 }
216 return result
217}
218
219type Error struct {
220 Err error

Callers 1

opCheckPredicateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected