Wording and grammatical fixes

This commit is contained in:
Eirik Ogilvie-Wigley 2019-10-17 15:16:51 -06:00
parent 78592da52a
commit e7aed48e7a
2 changed files with 8 additions and 6 deletions

View File

@ -6,6 +6,7 @@ Notable changes
DoS Mitigation: Mempool Size Limit and Random Drop
--------------------------------------------------
This release adds a mechanism for preventing nodes from running out of memory
in the situation where an attacker is trying to overwhelm the network with
transactions. This is achieved by keeping track of and limiting the total
@ -13,10 +14,11 @@ transactions. This is achieved by keeping track of and limiting the total
mempool. The maximum total cost is configurable via the parameter
`mempooltotalcostlimit` which defaults to 80,000,000 (up to 20,000 txs). If a
node's total mempool `cost` exceeds this limit the node will evict a random
transaction, weighted by its cost. To prevent a node from re-accepting evicted
transactions, it keeps track of ones that it has evicted recently. By default,
a transaction will be considered recently evicted for 60 minutes, but this can
be configured with the parameter `mempoolevictionmemoryminutes`.
transaction, preferentially picking larger transactions and ones with below
the standard fee. To prevent a node from re-accepting evicted transactions, it
keeps track of ones that it has evicted recently. By default, a transaction
will be considered recently evicted for 60 minutes, but this can be configured
with the parameter `mempoolevictionmemoryminutes`.
Fake chain detection during initial block download
--------------------------------------------------

View File

@ -96,10 +96,10 @@ class WeightedTxTree
std::vector<TxWeight> childWeights;
// The following map is to simplify removal. When removing a tx, we do so by txid.
// This map allows look up the transactions index in the tree.
// This map allows looking up the transaction's index in the tree.
std::map<uint256, size_t> txIdToIndexMap;
// Returns the sum of a node and all of its childrens' TxWeights for a given index.
// Returns the sum of a node and all of its children's TxWeights for a given index.
TxWeight getWeightAt(size_t index) const;
// When adding and removing a node we need to update its parent and all of its