diff options
| author | Ross Nicoll <[email protected]> | 2015-07-06 00:07:37 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-07-19 16:42:23 +0000 |
| commit | 8d5284422914164f73bfbdf3b275879da355af30 (patch) | |
| tree | 3b366f4a558e4814b75bff32d1cfbd1e68218cdf /src/rpcserver.cpp | |
| parent | Modify chain consensus parameters to be height aware (diff) | |
| download | discoin-8d5284422914164f73bfbdf3b275879da355af30.tar.xz discoin-8d5284422914164f73bfbdf3b275879da355af30.zip | |
Minor Dogecoin consensus fixes
Updated maximum coins to match Dogecoin.
Updated protocol version to disable connections to pre-AuxPoW clients.
Disable version 2 block requirement
Update coinbase maturity to match Dogecoin
Diffstat (limited to 'src/rpcserver.cpp')
| -rw-r--r-- | src/rpcserver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index f5902d2e5..b2dc252f8 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -126,7 +126,8 @@ static inline int64_t roundint64(double d) CAmount AmountFromValue(const Value& value) { double dAmount = value.get_real(); - if (dAmount <= 0.0 || dAmount > 21000000.0) + double dMaxAmount = MAX_MONEY / COIN; + if (dAmount <= 0.0 || dAmount > dMaxAmount) throw JSONRPCError(RPC_TYPE_ERROR, "Invalid amount"); CAmount nAmount = roundint64(dAmount * COIN); if (!MoneyRange(nAmount)) |