diff --git a/include/blocksci/chain/transaction.hpp b/include/blocksci/chain/transaction.hpp index a94df608..a9e0f1b1 100644 --- a/include/blocksci/chain/transaction.hpp +++ b/include/blocksci/chain/transaction.hpp @@ -60,6 +60,10 @@ namespace blocksci { return *data.hash; } + int32_t getVersion() const { + return *data.version; + } + BlockHeight calculateBlockHeight() const; BlockHeight getBlockHeight() const { diff --git a/src/internal/chain_access.hpp b/src/internal/chain_access.hpp index c125de5f..5240bed0 100644 --- a/src/internal/chain_access.hpp +++ b/src/internal/chain_access.hpp @@ -176,7 +176,7 @@ namespace blocksci { } return { txFile.getData(index), - nullptr, // txVersionFile[index] + txVersionFile[index], txHashesFile[index], inputsSpent, sequenceNumbers