mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
Add const to methods that do not modify the object for which it is called
This commit is contained in:
@@ -63,7 +63,7 @@ protected:
|
||||
bool fBad;
|
||||
|
||||
/** helper function to efficiently calculate the number of nodes at given height in the merkle tree */
|
||||
unsigned int CalcTreeWidth(int height) {
|
||||
unsigned int CalcTreeWidth(int height) const {
|
||||
return (nTransactions+(1 << height)-1) >> height;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user