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,
pub notify_auth_token: Option<String>,
}Expand description
Block assembler config options.
The block assembler section tells CKB how to claim the miner rewards.
Fields§
§code_hash: H256The miner lock script code hash.
args: JsonBytesThe miner lock script args.
message: JsonBytesAn arbitrary message to be added into the cellbase transaction.
hash_type: ScriptHashTypeThe miner lock script hash type.
use_binary_version_as_message_prefix: boolUse ckb binary version as message prefix to identify the block miner client (default true, false to disable it).
binary_version: StringA field to store the block miner client version, non-configurable options.
update_interval_millis: u64A field to control update interval millis
notify: Vec<Url>Notify url
notify_scripts: Vec<String>Notify scripts
notify_timeout_millis: u64Notify timeout
notify_auth_token: Option<String>Optional bearer token to authenticate block-template notifications.
When notify URLs are configured and this token is set, the node will
send the header Authorization: Bearer <token> with every notify
request. The receiving ckb-miner must be configured with the same token
in miner.client.auth_token, otherwise notifications will be rejected.
Must be non-empty and free of leading/trailing whitespace; the node refuses to start otherwise.
Trait Implementations§
Source§impl Clone for BlockAssemblerConfig
impl Clone for BlockAssemblerConfig
Source§fn clone(&self) -> BlockAssemblerConfig
fn clone(&self) -> BlockAssemblerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
impl Eq for BlockAssemblerConfig
Source§impl PartialEq for BlockAssemblerConfig
impl PartialEq for BlockAssemblerConfig
Source§impl Serialize for BlockAssemblerConfig
impl Serialize 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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