mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 11:17:56 +00:00
committed by
GitHub
parent
cac9d85cb3
commit
fcfb766366
@@ -27,9 +27,9 @@
|
||||
//! started via the [`start_mining_worker`] function. It returns a worker
|
||||
//! handle together with a future. The future must be pulled. Through
|
||||
//! the worker handle, you can pull the metadata needed to start the
|
||||
//! mining process via [`MiningWorker::metadata`], and then do the actual
|
||||
//! mining process via [`MiningHandle::metadata`], and then do the actual
|
||||
//! mining on a standalone thread. Finally, when a seal is found, call
|
||||
//! [`MiningWorker::submit`] to build the block.
|
||||
//! [`MiningHandle::submit`] to build the block.
|
||||
//!
|
||||
//! The auxiliary storage for PoW engine only stores the total difficulty.
|
||||
//! For other storage requirements for particular PoW algorithm (such as
|
||||
|
||||
@@ -459,11 +459,11 @@ pub struct Config {
|
||||
/// The total amount of memory in bytes an instance can request.
|
||||
///
|
||||
/// If specified, the runtime will be able to allocate only that much of wasm memory.
|
||||
/// This is the total number and therefore the [`heap_pages`] is accounted for.
|
||||
/// This is the total number and therefore the [`Config::heap_pages`] is accounted for.
|
||||
///
|
||||
/// That means that the initial number of pages of a linear memory plus the [`heap_pages`]
|
||||
/// multiplied by the wasm page size (64KiB) should be less than or equal to `max_memory_size`,
|
||||
/// otherwise the instance won't be created.
|
||||
/// That means that the initial number of pages of a linear memory plus the
|
||||
/// [`Config::heap_pages`] multiplied by the wasm page size (64KiB) should be less than or
|
||||
/// equal to `max_memory_size`, otherwise the instance won't be created.
|
||||
///
|
||||
/// Moreover, `memory.grow` will fail (return -1) if the sum of sizes of currently mounted
|
||||
/// and additional pages exceeds `max_memory_size`.
|
||||
|
||||
@@ -440,7 +440,7 @@ enum Register {
|
||||
|
||||
/// Report a telemetry.
|
||||
///
|
||||
/// Translates to [`tracing::info`], but contains an additional verbosity parameter which the log
|
||||
/// Translates to `tracing::info`, but contains an additional verbosity parameter which the log
|
||||
/// record is tagged with. Additionally the verbosity parameter is added to the record as a
|
||||
/// key-value pair.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user