MCPcopy Create free account
hub / github.com/ElementsProject/elements / pushasset

Function pushasset

src/script/interpreter.cpp:98–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static inline void pushasset(std::vector<valtype>& stack, const CConfidentialAsset& asset)
99{
100 assert(!asset.IsNull());
101 stack.emplace_back(asset.vchCommitment.begin() + 1, asset.vchCommitment.end()); // Push asset without prefix
102 stack.emplace_back(asset.vchCommitment.begin(), asset.vchCommitment.begin() + 1); // Push prefix
103}
104
105static inline void pushvalue(std::vector<valtype>& stack, const CConfidentialValue& value)
106{

Callers 1

EvalScriptFunction · 0.85

Calls 4

emplace_backMethod · 0.80
IsNullMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected