bitcoin: fix typos
This commit is contained in:
parent
fa716fb638
commit
80665671cd
|
@ -11,7 +11,7 @@ use bitcoin::secp256k1;
|
|||
use bitcoin::secp256k1::rand::Rng;
|
||||
|
||||
fn main() {
|
||||
// This example establishes a connection to a Bitcoin node, sends the intial
|
||||
// This example establishes a connection to a Bitcoin node, sends the initial
|
||||
// "version" message, waits for the reply, and finally closes the connection.
|
||||
let args: Vec<String> = env::args().collect();
|
||||
if args.len() < 2 {
|
||||
|
|
|
@ -348,7 +348,7 @@ impl_consensus_encoding!(BlockTransactions, block_hash, transactions);
|
|||
|
||||
impl BlockTransactions {
|
||||
/// Construct a [BlockTransactions] from a [BlockTransactionsRequest] and
|
||||
/// the corresponsing full [Block] by providing all requested transactions.
|
||||
/// the corresponding full [Block] by providing all requested transactions.
|
||||
pub fn from_request(
|
||||
request: &BlockTransactionsRequest,
|
||||
block: &Block,
|
||||
|
|
|
@ -58,7 +58,7 @@ pub enum Error {
|
|||
NonStandardSighashType(u32),
|
||||
/// Invalid hash when parsing slice.
|
||||
InvalidHash(hashes::FromSliceError),
|
||||
/// The pre-image must hash to the correponding psbt hash
|
||||
/// The pre-image must hash to the corresponding psbt hash
|
||||
InvalidPreimageHashPair {
|
||||
/// Hash-type
|
||||
hash_type: PsbtHash,
|
||||
|
|
|
@ -223,7 +223,7 @@ mod into_iter {
|
|||
#[inline]
|
||||
fn nth(&mut self, n: usize) -> Option<Self::Item> {
|
||||
if n >= self.len() {
|
||||
// upholds invariant becasue the values will be equal
|
||||
// upholds invariant because the values will be equal
|
||||
self.pos = self.signature.len();
|
||||
None
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue