Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Satoshi to DigiSatoshi in QT #229

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions src/qt/digibyteunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

// Source: https://dgbwiki.com/index.php?title=DigiByte#Subunits

#include <qt/digibyteunits.h>

#include <QStringList>
Expand Down Expand Up @@ -48,7 +50,7 @@ QString DigiByteUnits::longName(int unit)
case DGB: return QString("DGB");
case mDGB: return QString("mDGB");
case uDGB: return QString::fromUtf8("µDGB (bits)");
case SAT: return QString("Satoshi (sat)");
case SAT: return QString("DigiSatoshi (sat)");
default: return QString("???");
}
}
Expand All @@ -70,7 +72,7 @@ QString DigiByteUnits::description(int unit)
case DGB: return QString("DigiBytes");
case mDGB: return QString("Milli-DigiBytes (1 / 1" THIN_SP_UTF8 "000)");
case uDGB: return QString("Micro-DigiBytes (bits) (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case SAT: return QString("Satoshi (sat) (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case SAT: return QString("DigiSatoshi (sat) (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default: return QString("???");
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/qt/digibyteunits.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DigiByteUnits: public QAbstractListModel
explicit DigiByteUnits(QObject *parent);

/** DigiByte units.
@note Source: https://en.digibyte.it/wiki/Units . Please add only sensible ones
@note Source: https://dgbwiki.com/index.php?title=DigiByte#Subunits . Please add only sensible ones
*/
enum Unit
{
Expand Down Expand Up @@ -68,7 +68,7 @@ class DigiByteUnits: public QAbstractListModel
static QString shortName(int unit);
//! Longer description
static QString description(int unit);
//! Number of Satoshis (1e-8) per unit
//! Number of DigiSatoshis (1e-8) per unit
static qint64 factor(int unit);
//! Number of decimals left
static int decimals(int unit);
Expand Down Expand Up @@ -104,7 +104,7 @@ class DigiByteUnits: public QAbstractListModel
return text;
}

//! Return maximum number of base units (Satoshis)
//! Return maximum number of base units (DigiSatoshis)
static CAmount maxMoney();

private:
Expand Down