pub struct BlockAssemblerConfig {
pub code_hash: H256,
pub args: JsonBytes,
pub message: JsonBytes,
pub hash_type: ScriptHashType,
pub use_binary_version_as_message_prefix: bool,
pub binary_version: String,
pub update_interval_millis: u64,
pub notify: Vec<Url>,
pub notify_scripts: Vec<String>,
pub notify_timeout_millis: u64,
}
Expand description
Block assembler config options.
The block assembler section tells CKB how to claim the miner rewards.
Fields§
§code_hash: H256
The miner lock script code hash.
args: JsonBytes
The miner lock script args.
message: JsonBytes
An arbitrary message to be added into the cellbase transaction.
hash_type: ScriptHashType
The miner lock script hash type.
use_binary_version_as_message_prefix: bool
Use ckb binary version as message prefix to identify the block miner client (default true, false to disable it).
binary_version: String
A field to store the block miner client version, non-configurable options.
update_interval_millis: u64
A field to control update interval millis
notify: Vec<Url>
Notify url
notify_scripts: Vec<String>
Notify scripts
notify_timeout_millis: u64
Notify timeout
Trait Implementations§
Source§impl Clone for BlockAssemblerConfig
impl Clone for BlockAssemblerConfig
Source§fn clone(&self) -> BlockAssemblerConfig
fn clone(&self) -> BlockAssemblerConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockAssemblerConfig
impl Debug for BlockAssemblerConfig
Source§impl<'de> Deserialize<'de> for BlockAssemblerConfig
impl<'de> Deserialize<'de> for BlockAssemblerConfig
Source§fn 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
Source§impl PartialEq for BlockAssemblerConfig
impl PartialEq for BlockAssemblerConfig
Source§impl Serialize for BlockAssemblerConfig
impl Serialize for BlockAssemblerConfig
impl Eq for BlockAssemblerConfig
impl StructuralPartialEq for BlockAssemblerConfig
Auto Trait Implementations§
impl !Freeze for BlockAssemblerConfig
impl RefUnwindSafe for BlockAssemblerConfig
impl Send for BlockAssemblerConfig
impl Sync for BlockAssemblerConfig
impl Unpin for BlockAssemblerConfig
impl UnwindSafe for BlockAssemblerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more