1c0e57d984
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
25 lines
1.2 KiB
Markdown
25 lines
1.2 KiB
Markdown
Proof of work consensus for Bizinikiwi.
|
|
|
|
To use this engine, you can need to have a struct that implements
|
|
`PowAlgorithm`. After that, pass an instance of the struct, along
|
|
with other necessary client references to `import_queue` to setup
|
|
the queue.
|
|
|
|
This library also comes with an async mining worker, which can be
|
|
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 on a standalone thread. Finally, when a seal is found, call
|
|
`MiningWorker::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
|
|
the actual difficulty for each particular blocks), you can take a client
|
|
reference in your `PowAlgorithm` implementation, and use a separate prefix
|
|
for the auxiliary storage. It is also possible to just use the runtime
|
|
as the storage, but it is not recommended as it won't work well with light
|
|
clients.
|
|
|
|
License: GPL-3.0-or-later WITH Classpath-exception-2.0
|