Skip to content

Commit 2856dee

Browse files
author
MacroFake
committed
Merge bitcoin/bitcoin#26402: doc: Fix typos
180eac0 Fix: typos (omahs) Pull request description: Fix: typos ACKs for top commit: aureleoules: ACK 180eac0 Tree-SHA512: 23150f3408a2eb9cb298c6add16d1bcb149da277238786f053c2896c803f896b07555b3dc71e15cd8d390023800c8e006f931f415f887bab69ee5bd4b0420581
2 parents c75c0d8 + 180eac0 commit 2856dee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/tracing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ the passed message.
7676

7777
#### Tracepoint `net:outbound_message`
7878

79-
Is called when a message is send to a peer over the P2P network. Passes
79+
Is called when a message is sent to a peer over the P2P network. Passes
8080
information about our peer, the connection and the message as arguments.
8181

8282
Arguments passed:
@@ -116,7 +116,7 @@ added to and removed (spent) from the cache when we connect a new block.
116116
(`chainstate.CoinsTip()`). For example, the RPCs `generateblock` and
117117
`getblocktemplate` call `TestBlockValidity()`, which applies the UTXO set
118118
changes to a temporary cache. Similarly, mempool consistency checks, which are
119-
frequent on regtest, also apply the the UTXO set changes to a temporary cache.
119+
frequent on regtest, also apply the UTXO set changes to a temporary cache.
120120
Changes to the _main_ UTXO cache and to temporary caches trigger the tracepoints.
121121
We can't tell if a temporary cache or the _main_ cache was changed.
122122

@@ -253,8 +253,8 @@ TRACE6(net, inbound_message,
253253

254254
### Guidelines and best practices
255255

256-
#### Clear motivation and use-case
257-
Tracepoints need a clear motivation and use-case. The motivation should
256+
#### Clear motivation and use case
257+
Tracepoints need a clear motivation and use case. The motivation should
258258
outweigh the impact on, for example, code readability. There is no point in
259259
adding tracepoints that don't end up being used.
260260

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,7 +2714,7 @@ void PeerManagerImpl::UpdatePeerStateForReceivedHeaders(CNode& pfrom,
27142714
// This peer has too little work on their headers chain to help
27152715
// us sync -- disconnect if it is an outbound disconnection
27162716
// candidate.
2717-
// Note: We compare their tip to the minumum chain work (rather than
2717+
// Note: We compare their tip to the minimum chain work (rather than
27182718
// m_chainman.ActiveChain().Tip()) because we won't start block download
27192719
// until we have a headers chain that has at least
27202720
// the minimum chain work, even if a peer has a chain past our tip,
@@ -3901,7 +3901,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
39013901
// Note that if we were to be on a chain that forks from the checkpointed
39023902
// chain, then serving those headers to a peer that has seen the
39033903
// checkpointed chain would cause that peer to disconnect us. Requiring
3904-
// that our chainwork exceed the mimimum chain work is a protection against
3904+
// that our chainwork exceed the minimum chain work is a protection against
39053905
// being fed a bogus chain when we started up for the first time and
39063906
// getting partitioned off the honest network for serving that chain to
39073907
// others.

0 commit comments

Comments
 (0)