Struct ckb_app_config::BlockAssemblerConfig [−][src]
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,
}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.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more