MCPcopy Create free account
hub / github.com/citp/BlockSci / operator()

Method operator()

tools/parser/script_output.cpp:145–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143struct ScriptOutputGenerator {
144 template <blocksci::AddressType::Enum type>
145 ScriptOutputType operator()(const ScriptOutputData<type> &outputData) const {
146 return ScriptOutput<type>(outputData);
147 }
148};
149
150AnyScriptOutput::AnyScriptOutput(const blocksci::CScriptView &scriptPubKey, bool p2shActivated, bool witnessActivated) : wrapped(mpark::visit(ScriptOutputGenerator(), extractScriptData(scriptPubKey, p2shActivated, witnessActivated))) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected