Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dynafed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl FullParams {
crate::fast_merkle_root::fast_merkle_root(&leaves[..])
}

/// Turns paramers into compact parameters.
/// Turns parameters into compact parameters.
/// This returns self for compact params and [None] for null ones.
pub fn into_compact(self) -> Params {
Params::Compact {
Expand Down Expand Up @@ -388,7 +388,7 @@ impl Params {
}
}

/// Turns paramers into compact parameters.
/// Turns parameters into compact parameters.
/// This returns self for compact params and [None] for null ones.
pub fn into_compact(self) -> Option<Params> {
match self {
Expand Down
4 changes: 2 additions & 2 deletions src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl Sequence {
self.is_relative_lock_time() & (self.0 & Sequence::LOCK_TYPE_MASK == 0)
}

/// Returns `true` if the sequene number encodes a time interval based relative lock-time.
/// Returns `true` if the sequence number encodes a time interval based relative lock-time.
#[inline]
pub fn is_time_locked(&self) -> bool {
self.is_relative_lock_time() & (self.0 & Sequence::LOCK_TYPE_MASK > 0)
Expand Down Expand Up @@ -479,7 +479,7 @@ impl<'tx> PeginData<'tx> {
/// A transaction input, which defines old coins to be consumed
#[derive(Clone, PartialEq, Eq, Debug, Hash, PartialOrd, Ord)]
pub struct TxIn {
/// The reference to the previous output that is being used an an input
/// The reference to the previous output that is being used as an input
pub previous_output: OutPoint,
/// Flag indicating that `previous_outpoint` refers to something on the main chain
pub is_pegin: bool,
Expand Down