doc: correct typos

This commit is contained in:
fanquake 2024-11-11 13:55:45 +00:00
parent 9fdfb73ca8
commit 726cbee955
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1
5 changed files with 5 additions and 5 deletions

View file

@ -671,7 +671,7 @@ public:
m_sorted_to_original(depgraph.TxCount()),
m_original_to_sorted(depgraph.PositionRange())
{
// Determine reordering mapping, by sorting by decreasing feerate. Unusued positions are
// Determine reordering mapping, by sorting by decreasing feerate. Unused positions are
// not included, as they will never be looked up anyway.
ClusterIndex sorted_pos{0};
for (auto i : depgraph.Positions()) {

View file

@ -54,7 +54,7 @@ public:
//! The optional `ready_fn` callback will be called after the event loop is
//! created but before it is started. This can be useful in tests to trigger
//! client connections from another thread as soon as the event loop is
//! available, but should not be neccessary in normal code which starts
//! available, but should not be necessary in normal code which starts
//! clients and servers independently.
virtual void serve(int fd, const char* exe_name, interfaces::Init& init, const std::function<void()>& ready_fn = {}) = 0;

View file

@ -136,7 +136,7 @@ bool PermittedDifficultyTransition(const Consensus::Params& params, int64_t heig
}
// Bypasses the actual proof of work check during fuzz testing with a simplified validation checking whether
// the most signficant bit of the last byte of the hash is set.
// the most significant bit of the last byte of the hash is set.
bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params& params)
{
if constexpr (G_FUZZING) return (hash.data()[31] & 0x80) == 0;

View file

@ -82,7 +82,7 @@ static bool CheckOrphanBehavior(node::TxDownloadManagerImpl& txdownload_impl, co
}
if (expect_orphan != txdownload_impl.m_orphanage.HaveTx(tx->GetWitnessHash())) {
err_msg = strprintf("unexpectedly %s tx in orpanage", expect_orphan ? "did not find" : "found");
err_msg = strprintf("unexpectedly %s tx in orphanage", expect_orphan ? "did not find" : "found");
return false;
}
if (expect_keep != ret.m_should_add_extra_compact_tx) {

View file

@ -114,7 +114,7 @@ class Socks5Connection():
self.conn = conn
def handle(self):
"""Handle socks5 request according to RFC192."""
"""Handle socks5 request according to RFC1928."""
try:
# Verify socks version
ver = recvall(self.conn, 1)[0]