aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/base58.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/base58.cpp b/src/common/base58.cpp
index 454c0db67..575279aa5 100644
--- a/src/common/base58.cpp
+++ b/src/common/base58.cpp
@@ -110,7 +110,7 @@ namespace tools
void encode_block(const char* block, size_t size, char* res)
{
- assert(1 <= size && size <= sizeof(full_block_size));
+ assert(1 <= size && size <= full_block_size);
uint64_t num = uint_8be_to_64(reinterpret_cast<const uint8_t*>(block), size);
int i = static_cast<int>(encoded_block_sizes[size]) - 1;