mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanups.
This commit is contained in:
@@ -204,9 +204,9 @@ public:
|
||||
bool isAccountState() const { return mType == tnACCOUNT_STATE; }
|
||||
|
||||
// inner node functions
|
||||
bool isInnerNode() const { return !mItem; }
|
||||
bool isInnerNode() const { return !mItem; }
|
||||
bool setChildHash(int m, const uint256& hash);
|
||||
bool isEmptyBranch(int m) const { return !mHashes[m]; }
|
||||
bool isEmptyBranch(int m) const { return mHashes[m].isZero(); }
|
||||
bool isEmpty() const;
|
||||
int getBranchCount() const;
|
||||
void makeInner();
|
||||
|
||||
@@ -298,22 +298,22 @@ public:
|
||||
|
||||
unsigned char* begin()
|
||||
{
|
||||
return (unsigned char*) &pn[0];
|
||||
return reinterpret_cast<unsigned char*>(pn);
|
||||
}
|
||||
|
||||
unsigned char* end()
|
||||
{
|
||||
return (unsigned char*) &pn[WIDTH];
|
||||
return reinterpret_cast<unsigned char*>(pn + WIDTH);
|
||||
}
|
||||
|
||||
const unsigned char* begin() const
|
||||
{
|
||||
return (const unsigned char*) &pn[0];
|
||||
return reinterpret_cast<const unsigned char*>(pn);
|
||||
}
|
||||
|
||||
const unsigned char* end() const
|
||||
{
|
||||
return (unsigned char*) &pn[WIDTH];
|
||||
return reinterpret_cast<const unsigned char*>(pn + WIDTH);
|
||||
}
|
||||
|
||||
unsigned int size() const
|
||||
|
||||
Reference in New Issue
Block a user