| 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 |
nothing calls this directly
no test coverage detected