diff options
| author | Pieter Wuille <[email protected]> | 2014-06-09 10:02:00 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-06-22 00:06:17 +0200 |
| commit | d38da59bf68fbb37535e2579bfb7355a16baed0e (patch) | |
| tree | fb9821f60f32fa8ea0564d1149fa37ab396ead97 /src/core.h | |
| parent | Add CMutableTransaction and make CTransaction immutable. (diff) | |
| download | discoin-d38da59bf68fbb37535e2579bfb7355a16baed0e.tar.xz discoin-d38da59bf68fbb37535e2579bfb7355a16baed0e.zip | |
Code simplifications after CTransaction::GetHash() caching
Diffstat (limited to 'src/core.h')
| -rw-r--r-- | src/core.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core.h b/src/core.h index 1a20145cc..27fda9555 100644 --- a/src/core.h +++ b/src/core.h @@ -496,12 +496,6 @@ public: uint256 BuildMerkleTree() const; - const uint256 &GetTxHash(unsigned int nIndex) const { - assert(vMerkleTree.size() > 0); // BuildMerkleTree must have been called first - assert(nIndex < vtx.size()); - return vMerkleTree[nIndex]; - } - std::vector<uint256> GetMerkleBranch(int nIndex) const; static uint256 CheckMerkleBranch(uint256 hash, const std::vector<uint256>& vMerkleBranch, int nIndex); void print() const; |