MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / popstack

Function popstack

src/script/interpreter.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65#define stacktop(i) (stack.at(size_t(int64_t(stack.size()) + int64_t{i})))
66#define altstacktop(i) (altstack.at(size_t(int64_t(altstack.size()) + int64_t{i})))
67static inline void popstack(std::vector<valtype>& stack)
68{
69 if (stack.empty())
70 throw std::runtime_error("popstack(): stack empty");
71 stack.pop_back();
72}
73
74bool static IsCompressedOrUncompressedPubKey(const valtype &vchPubKey) {
75 if (vchPubKey.size() < CPubKey::COMPRESSED_SIZE) {

Callers 2

EvalScriptFunction · 0.85
VerifyScriptFunction · 0.85

Calls 2

emptyMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected