aboutsummaryrefslogtreecommitdiff
path: root/src/base58.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-12 12:27:01 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-12 12:27:01 +0200
commit18cf214528d14692941311be154214cab1772ed5 (patch)
treef3525c858aadbff78832fb9a4198077fbbc27b1f /src/base58.h
parent0424613ba24de94b58f6fa7bf1627fd4e2807208 (diff)
update bitcoin core to git ce148944c776ae8e91cc058f44ddce356c7cebc9
Diffstat (limited to 'src/base58.h')
-rw-r--r--src/base58.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base58.h b/src/base58.h
index 580bd3fc63..c2729d4770 100644
--- a/src/base58.h
+++ b/src/base58.h
@@ -38,6 +38,8 @@ inline std::string EncodeBase58(const unsigned char* pbegin, const unsigned char
// Convert bignum to std::string
std::string str;
+ // Expected size increase from base58 conversion is approximately 137%
+ // use 138% to be safe
str.reserve((pend - pbegin) * 138 / 100 + 1);
CBigNum dv;
CBigNum rem;