Skip to content

Commit 37767fd

Browse files
committed
fix spelling of advertise in src and doc
1 parent 80d1f2e commit 37767fd

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

doc/tor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ your bitcoind's P2P listen port (8333 by default).
5252
this option, and this can be a .onion address. Given the above
5353
configuration, you can find your onion address in
5454
/var/lib/tor/bitcoin-service/hostname. Onion addresses are given
55-
preference for your node to advertize itself with, for connections
55+
preference for your node to advertise itself with, for connections
5656
coming from unroutable addresses (such as 127.0.0.1, where the
5757
Tor proxy typically runs).
5858

src/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void MarkBlockAsInFlight(NodeId nodeid, const uint256& hash, const Consensus::Pa
376376
mapBlocksInFlight[hash] = std::make_pair(nodeid, it);
377377
}
378378

379-
/** Check whether the last unknown block a peer advertized is not yet known. */
379+
/** Check whether the last unknown block a peer advertised is not yet known. */
380380
void ProcessBlockAvailability(NodeId nodeid) {
381381
CNodeState *state = State(nodeid);
382382
assert(state != NULL);
@@ -4456,11 +4456,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
44564456
CAddress addr = GetLocalAddress(&pfrom->addr);
44574457
if (addr.IsRoutable())
44584458
{
4459-
LogPrintf("ProcessMessages: advertizing address %s\n", addr.ToString());
4459+
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
44604460
pfrom->PushAddress(addr);
44614461
} else if (IsPeerAddrLocalGood(pfrom)) {
44624462
addr.SetIP(pfrom->addrLocal);
4463-
LogPrintf("ProcessMessages: advertizing address %s\n", addr.ToString());
4463+
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
44644464
pfrom->PushAddress(addr);
44654465
}
44664466
}
@@ -5469,7 +5469,7 @@ bool SendMessages(CNode* pto)
54695469
// Address refresh broadcast
54705470
int64_t nNow = GetTimeMicros();
54715471
if (!IsInitialBlockDownload() && pto->nNextLocalAddrSend < nNow) {
5472-
AdvertizeLocal(pto);
5472+
AdvertiseLocal(pto);
54735473
pto->nNextLocalAddrSend = PoissonNextSend(nNow, AVG_LOCAL_ADDRESS_BROADCAST_INTERVAL);
54745474
}
54755475

src/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ bool IsPeerAddrLocalGood(CNode *pnode)
205205
}
206206

207207
// pushes our own address to a peer
208-
void AdvertizeLocal(CNode *pnode)
208+
void AdvertiseLocal(CNode *pnode)
209209
{
210210
if (fListen && pnode->fSuccessfullyConnected)
211211
{
@@ -220,7 +220,7 @@ void AdvertizeLocal(CNode *pnode)
220220
}
221221
if (addrLocal.IsRoutable())
222222
{
223-
LogPrintf("AdvertizeLocal: advertizing address %s\n", addrLocal.ToString());
223+
LogPrintf("AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
224224
pnode->PushAddress(addrLocal);
225225
}
226226
}

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ enum
134134
};
135135

136136
bool IsPeerAddrLocalGood(CNode *pnode);
137-
void AdvertizeLocal(CNode *pnode);
137+
void AdvertiseLocal(CNode *pnode);
138138
void SetLimited(enum Network net, bool fLimited = true);
139139
bool IsLimited(enum Network net);
140140
bool IsLimited(const CNetAddr& addr);

src/torcontrol.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void TorController::add_onion_cb(TorControlConnection& conn, const TorControlRep
434434
}
435435

436436
service = CService(service_id+".onion", GetListenPort(), false);
437-
LogPrintf("tor: Got service ID %s, advertizing service %s\n", service_id, service.ToString());
437+
LogPrintf("tor: Got service ID %s, advertising service %s\n", service_id, service.ToString());
438438
if (WriteBinaryFile(GetPrivateKeyFile(), private_key)) {
439439
LogPrint("tor", "tor: Cached service private key to %s\n", GetPrivateKeyFile());
440440
} else {
@@ -615,7 +615,7 @@ void TorController::connected_cb(TorControlConnection& conn)
615615

616616
void TorController::disconnected_cb(TorControlConnection& conn)
617617
{
618-
// Stop advertizing service when disconnected
618+
// Stop advertising service when disconnected
619619
if (service.IsValid())
620620
RemoveLocal(service);
621621
service = CService();

0 commit comments

Comments
 (0)