MCPcopy Create free account
hub / github.com/citp/BlockSci / Find

Method Find

src/internal/script_view.hpp:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 int Find(opcodetype op) const
96 {
97 int nFound = 0;
98 opcodetype opcode = OP_0;
99 for (iterator pc = begin(); pc != end() && GetOp(pc, opcode);)
100 if (opcode == op)
101 ++nFound;
102 return nFound;
103 }
104
105 /**
106 * Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs

Callers

nothing calls this directly

Calls 2

beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected