Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CPChain/chain
/ dup
Method
dup
core/vm/stack.go:64–66 ·
view source on GitHub ↗
(pool *intPool, n int)
Source
from the content-addressed store, hash-verified
62
}
63
64
func
(st *Stack) dup(pool *intPool, n int) {
65
st.push(pool.get().Set(st.data[st.len()-n]))
66
}
67
68
func
(st *Stack) peek() *big.Int {
69
return
st.data[st.len()-1]
Callers
1
makeDup
Function · 0.80
Calls
4
push
Method · 0.95
len
Method · 0.95
Set
Method · 0.45
get
Method · 0.45
Tested by
no test coverage detected