Struct ckb_app_config::BlockAssemblerConfig
source · 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§fn eq(&self, other: &BlockAssemblerConfig) -> bool
fn eq(&self, other: &BlockAssemblerConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockAssemblerConfig
impl Serialize for BlockAssemblerConfig
impl Eq for BlockAssemblerConfig
impl StructuralPartialEq for BlockAssemblerConfig
Auto Trait Implementations§
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