Skip to content

Commit

Permalink
Move COIN and CENT to core.h
Browse files Browse the repository at this point in the history
Eventually these should end up in `money.h` after monetary
amounts are typedef'ed, but at least they don't belong in `util.h`.
  • Loading branch information
laanwj committed Aug 26, 2014
1 parent 6e5fd00 commit f841aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

class CTransaction;

static const int64_t COIN = 100000000;
static const int64_t CENT = 1000000;

/** No amount larger than this (in satoshi) is valid */
static const int64_t MAX_MONEY = 21000000 * COIN;
inline bool MoneyRange(int64_t nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
Expand Down
3 changes: 0 additions & 3 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@

class uint256;

static const int64_t COIN = 100000000;
static const int64_t CENT = 1000000;

#define BEGIN(a) ((char*)&(a))
#define END(a) ((char*)&((&(a))[1]))
#define UBEGIN(a) ((unsigned char*)&(a))
Expand Down

0 comments on commit f841aa2

Please sign in to comment.