pub enum GetBlockTemplateResulMutations {
Time,
Transactions,
PreviousBlock,
}
Expand description
Enum to representing mutable parts of the block template. This does only cover the muations implemented in Bitcoin Core. More mutations are defined in BIP-23, but not implemented in the getblocktemplate implementation of Bitcoin Core.
Variants
Time
The client is allowed to modify the time in the header of the block
Transactions
The client is allowed to add transactions to the block
PreviousBlock
The client is allowed to use the work with other previous blocks. This implicitly allows removing transactions that are no longer valid. It also implies adjusting the “height” as necessary.
Trait Implementations
sourceimpl Clone for GetBlockTemplateResulMutations
impl Clone for GetBlockTemplateResulMutations
sourcefn clone(&self) -> GetBlockTemplateResulMutations
fn clone(&self) -> GetBlockTemplateResulMutations
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for GetBlockTemplateResulMutations
impl<'de> Deserialize<'de> for GetBlockTemplateResulMutations
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<GetBlockTemplateResulMutations> for GetBlockTemplateResulMutations
impl PartialEq<GetBlockTemplateResulMutations> for GetBlockTemplateResulMutations
sourcefn eq(&self, other: &GetBlockTemplateResulMutations) -> bool
fn eq(&self, other: &GetBlockTemplateResulMutations) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for GetBlockTemplateResulMutations
impl Eq for GetBlockTemplateResulMutations
impl StructuralEq for GetBlockTemplateResulMutations
impl StructuralPartialEq for GetBlockTemplateResulMutations
Auto Trait Implementations
impl RefUnwindSafe for GetBlockTemplateResulMutations
impl Send for GetBlockTemplateResulMutations
impl Sync for GetBlockTemplateResulMutations
impl Unpin for GetBlockTemplateResulMutations
impl UnwindSafe for GetBlockTemplateResulMutations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more