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

Method getSpentOutput

src/chain/input.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 Output Input::getSpentOutput() const {
55 auto pointer = getSpentOutputPointer();
56 auto height = access->getChain().getBlockHeight(pointer.txNum);
57 auto tx = access->getChain().getTx(pointer.txNum);
58 return {pointer, height, tx->getOutput(pointer.inoutNum), maxTxCount, *access};
59 }
60
61 std::string Input::toString() const {
62 std::stringstream ss;

Callers

nothing calls this directly

Calls 3

getSpentOutputPointerFunction · 0.85
getTxMethod · 0.80
getBlockHeightMethod · 0.45

Tested by

no test coverage detected