Skip to content

Commit

Permalink
Add tx version, Fixes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
hkalodner committed Oct 22, 2018
1 parent e084d86 commit b413f4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/blocksci/chain/transaction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ namespace blocksci {
return *data.hash;
}

int32_t getVersion() const {
return *data.version;
}

BlockHeight calculateBlockHeight() const;

BlockHeight getBlockHeight() const {
Expand Down
2 changes: 1 addition & 1 deletion src/internal/chain_access.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ namespace blocksci {
}
return {
txFile.getData(index),
nullptr, // txVersionFile[index]
txVersionFile[index],
txHashesFile[index],
inputsSpent,
sequenceNumbers
Expand Down

0 comments on commit b413f4b

Please sign in to comment.