[−][src]Enum network::ConsensusFork
Concurrent consensus rule forks.
Variants
BitcoinCore
No fork.
BitcoinCash(BitcoinCashConsensusParams)
Bitcoin Cash (aka UAHF).
u32
is height of the first block, for which new consensus rules are applied.
Briefly: no SegWit + blocks up to 8MB + replay protection.
Technical specification:
UAHF Technical Specification - https://github.com/Bitcoin-UAHF/spec/blob/master/uahf-technical-spec.md
BUIP-HF Digest for replay protected signature verification across hard forks - https://github.com/Bitcoin-UAHF/spec/blob/master/replay-protected-sighash.md
Methods
impl ConsensusFork
[src]
impl ConsensusFork
pub fn absolute_maximum_block_size() -> usize
[src]
pub fn absolute_maximum_block_size() -> usize
Absolute (across all forks) maximum block size. Currently is 8MB for post-HF BitcoinCash
pub fn absolute_maximum_block_sigops() -> usize
[src]
pub fn absolute_maximum_block_sigops() -> usize
Absolute (across all forks) maximum number of sigops in single block. Currently is max(sigops) for 8MB post-HF BitcoinCash block
pub fn witness_scale_factor() -> usize
[src]
pub fn witness_scale_factor() -> usize
Witness scale factor (equal among all forks)
pub fn activation_height(&self) -> u32
[src]
pub fn activation_height(&self) -> u32
pub fn min_transaction_size(&self, median_time_past: u32) -> usize
[src]
pub fn min_transaction_size(&self, median_time_past: u32) -> usize
pub fn max_transaction_size(&self) -> usize
[src]
pub fn max_transaction_size(&self) -> usize
pub fn min_block_size(&self, height: u32) -> usize
[src]
pub fn min_block_size(&self, height: u32) -> usize
pub fn max_block_size(&self, height: u32, median_time_past: u32) -> usize
[src]
pub fn max_block_size(&self, height: u32, median_time_past: u32) -> usize
pub fn max_block_sigops(&self, height: u32, block_size: usize) -> usize
[src]
pub fn max_block_sigops(&self, height: u32, block_size: usize) -> usize
pub fn max_block_sigops_cost(&self, height: u32, block_size: usize) -> usize
[src]
pub fn max_block_sigops_cost(&self, height: u32, block_size: usize) -> usize
pub fn max_block_weight(&self, _height: u32) -> usize
[src]
pub fn max_block_weight(&self, _height: u32) -> usize
pub fn transaction_ordering(&self, median_time_past: u32) -> TransactionOrdering
[src]
pub fn transaction_ordering(&self, median_time_past: u32) -> TransactionOrdering
Trait Implementations
impl Debug for ConsensusFork
[src]
impl Debug for ConsensusFork
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ConsensusFork
[src]
impl Clone for ConsensusFork
fn clone(&self) -> ConsensusFork
[src]
fn clone(&self) -> ConsensusFork
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ConsensusFork
impl Send for ConsensusFork
impl Sync for ConsensusFork
impl Sync for ConsensusFork
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more