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

Method getTransactionRevealed

src/scripts/script.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 ranges::optional<Transaction> ScriptBase::getTransactionRevealed() const {
26 auto index = getTxRevealedIndex();
27 if (index) {
28 return Transaction(*index, getAccess().getChain().getBlockHeight(*index), getAccess());
29 } else {
30 return ranges::nullopt;
31 }
32 }
33} // namespace blocksci

Callers

nothing calls this directly

Calls 3

getTxRevealedIndexFunction · 0.85
TransactionClass · 0.50
getBlockHeightMethod · 0.45

Tested by

no test coverage detected