mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 18:09:47 +01:00
Merge bitcoin/bitcoin#24203: doc: Fix typos pointed out by lint-spelling
58ccc88541
lint: add creat and ba into ignore-words for lint-spelling (brunoerg)bad0e7f521
doc: Fix typos pointed out by lint-spelling (brunoerg) Pull request description: Occuring -> occurring (random.h) Covert -> convert (chacha_poly_aead.cpp) Fix `nWe` false positive in blockchain.cpp (https://github.com/bitcoin/bitcoin/pull/24203#issuecomment-1025116962) Got it by linter, other ones are false positives. ACKs for top commit: prusnak: ACK58ccc88541
Tree-SHA512: b350d0e64968b96ead226da0be6aa4ca3f8e482ae401697867684ce8478e96b954124b3dea6dcd697aad4206f209f32f238d7cf0a0589075f24f5cf629c563f3
This commit is contained in:
commit
af7b077973
@ -73,7 +73,7 @@ bool ChaCha20Poly1305AEAD::Crypt(uint64_t seqnr_payload, uint64_t seqnr_aad, int
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
memory_cleanse(expected_tag, sizeof(expected_tag));
|
memory_cleanse(expected_tag, sizeof(expected_tag));
|
||||||
// MAC has been successfully verified, make sure we don't covert it in decryption
|
// MAC has been successfully verified, make sure we don't convert it in decryption
|
||||||
src_len -= POLY1305_TAGLEN;
|
src_len -= POLY1305_TAGLEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ constexpr auto GetRandMillis = GetRandomDuration<std::chrono::milliseconds>;
|
|||||||
* is memoryless and should be used for repeated network events (e.g. sending a
|
* is memoryless and should be used for repeated network events (e.g. sending a
|
||||||
* certain type of message) to minimize leaking information to observers.
|
* certain type of message) to minimize leaking information to observers.
|
||||||
*
|
*
|
||||||
* The probability of an event occuring before time x is 1 - e^-(x/a) where a
|
* The probability of an event occurring before time x is 1 - e^-(x/a) where a
|
||||||
* is the average interval between events.
|
* is the average interval between events.
|
||||||
* */
|
* */
|
||||||
std::chrono::microseconds GetExponentialRand(std::chrono::microseconds now, std::chrono::seconds average_interval);
|
std::chrono::microseconds GetExponentialRand(std::chrono::microseconds now, std::chrono::seconds average_interval);
|
||||||
|
@ -790,10 +790,10 @@ static RPCHelpMan getblockfrompeer()
|
|||||||
{
|
{
|
||||||
return RPCHelpMan{
|
return RPCHelpMan{
|
||||||
"getblockfrompeer",
|
"getblockfrompeer",
|
||||||
"Attempt to fetch block from a given peer.\n"
|
"Attempt to fetch block from a given peer.\n\n"
|
||||||
"\nWe must have the header for this block, e.g. using submitheader.\n"
|
"We must have the header for this block, e.g. using submitheader.\n"
|
||||||
"Subsequent calls for the same block and a new peer will cause the response from the previous peer to be ignored.\n"
|
"Subsequent calls for the same block and a new peer will cause the response from the previous peer to be ignored.\n\n"
|
||||||
"\nReturns an empty JSON object if the request was successfully scheduled.",
|
"Returns an empty JSON object if the request was successfully scheduled.",
|
||||||
{
|
{
|
||||||
{"block_hash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash to try to fetch"},
|
{"block_hash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash to try to fetch"},
|
||||||
{"peer_id", RPCArg::Type::NUM, RPCArg::Optional::NO, "The peer to fetch it from (see getpeerinfo for peer IDs)"},
|
{"peer_id", RPCArg::Type::NUM, RPCArg::Optional::NO, "The peer to fetch it from (see getpeerinfo for peer IDs)"},
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
asend
|
asend
|
||||||
|
ba
|
||||||
blockin
|
blockin
|
||||||
cachable
|
cachable
|
||||||
|
creat
|
||||||
fo
|
fo
|
||||||
fpr
|
fpr
|
||||||
hights
|
hights
|
||||||
|
Loading…
Reference in New Issue
Block a user