Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions AddressUtil/Base58.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ std::string Base58::toBase58(const secp256k1::uint256 &x)

secp256k1::uint256 value = x;

while(!value.isZero()) {
//while(!value.isZero()) {
for(unsigned int i=0; i<=32; i++){
secp256k1::uint256 digit = value.mod(58);
int digitInt = digit.toInt32();

Expand Down Expand Up @@ -114,4 +115,4 @@ void Base58::getMinMaxFromPrefix(const std::string &prefix, secp256k1::uint256 &

minValueOut = minValue;
maxValueOut = maxValue;
}
}