mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-02 10:14:31 +00:00
Formatting, spelling, comment fixes.
This commit is contained in:
parent
9fa53dd3bd
commit
7a19efe040
@ -63,5 +63,5 @@ Warning
|
|||||||
- Using other relay rules, a double-spender can craft his crime to
|
- Using other relay rules, a double-spender can craft his crime to
|
||||||
resist broadcast
|
resist broadcast
|
||||||
- Miners can choose which conflicting spend to confirm, and some
|
- Miners can choose which conflicting spend to confirm, and some
|
||||||
miners may not confirmg the first acceptable spend they see
|
miners may not confirm the first acceptable spend they see
|
||||||
|
|
||||||
|
@ -852,7 +852,6 @@ bool RateLimitExceeded(double& dCount, int64_t& nLastTime, int64_t nLimit, unsig
|
|||||||
|
|
||||||
LOCK(csLimiter);
|
LOCK(csLimiter);
|
||||||
|
|
||||||
// Use an exponentially decaying ~10-minute window:
|
|
||||||
dCount *= pow(1.0 - 1.0/600.0, (double)(nNow - nLastTime));
|
dCount *= pow(1.0 - 1.0/600.0, (double)(nNow - nLastTime));
|
||||||
nLastTime = nNow;
|
nLastTime = nNow;
|
||||||
if (dCount >= nLimit*10*1000)
|
if (dCount >= nLimit*10*1000)
|
||||||
@ -1000,8 +999,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void RelayDoubleSpend(const COutPoint& outPoint, const CTransaction& doubleSpend, bool fInBlock, CBloomFilter& filter)
|
||||||
RelayDoubleSpend(const COutPoint& outPoint, const CTransaction& doubleSpend, bool fInBlock, CBloomFilter& filter)
|
|
||||||
{
|
{
|
||||||
// Relaying double-spend attempts to our peers lets them detect when
|
// Relaying double-spend attempts to our peers lets them detect when
|
||||||
// somebody might be trying to cheat them. However, blindly relaying
|
// somebody might be trying to cheat them. However, blindly relaying
|
||||||
|
@ -19,10 +19,17 @@ class TransactionStatus
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TransactionStatus():
|
TransactionStatus():
|
||||||
countsForBalance(false), sortKey(""),
|
countsForBalance(false),
|
||||||
matures_in(0), status(Offline), hasConflicting(false), depth(0), open_for(0), cur_num_blocks(-1),
|
sortKey(""),
|
||||||
|
matures_in(0),
|
||||||
|
status(Offline),
|
||||||
|
hasConflicting(false),
|
||||||
|
depth(0),
|
||||||
|
open_for(0),
|
||||||
|
cur_num_blocks(-1),
|
||||||
cur_num_conflicts(-1)
|
cur_num_conflicts(-1)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
|
|
||||||
enum Status {
|
enum Status {
|
||||||
Confirmed, /**< Have 6 or more confirmations (normal tx) or fully mature (mined tx) **/
|
Confirmed, /**< Have 6 or more confirmations (normal tx) or fully mature (mined tx) **/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user