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