aboutsummaryrefslogtreecommitdiff
path: root/src/merkleblock.h
diff options
context:
space:
mode:
authorChris Stewart <stewart.chris1234@gmail.com>2017-04-06 20:28:19 -0500
committerChris Stewart <stewart.chris1234@gmail.com>2017-07-12 10:48:37 -0500
commit8276e70de15c5c3a7525471ad619edd1237b424a (patch)
tree2a64138670f3166868cc565b8f739c2cf5b11f61 /src/merkleblock.h
parente8b95239eeb052b122786d9cca6bc58106837599 (diff)
downloadbitcoin-8276e70de15c5c3a7525471ad619edd1237b424a.tar.xz
Adding assert to avoid a memory access violation inside of PartialMerkleTree::CalcHash()
Adding comment to assert in PartialMerkleTree::CalcHash() Adding comment on CMerkleBlock indicating it calls something that contains an assert Removing EOL whitespace
Diffstat (limited to 'src/merkleblock.h')
-rw-r--r--src/merkleblock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/merkleblock.h b/src/merkleblock.h
index de4c5c8d29..f590c487de 100644
--- a/src/merkleblock.h
+++ b/src/merkleblock.h
@@ -121,6 +121,8 @@ public:
/**
* Used to relay blocks as header + vector<merkle branch>
* to filtered nodes.
+ *
+ * NOTE: The class assumes that the given CBlock has *at least* 1 transaction. If the CBlock has 0 txs, it will hit an assertion.
*/
class CMerkleBlock
{