src.mining_strategy¶
Defines the contents of newly mined blocks.
Functions
create_block (blockchain, ...) |
Creates a new block that can be mined. |
Classes
-
src.mining_strategy.
create_block
(blockchain, unconfirmed_transactions, reward_pubkey)¶ Creates a new block that can be mined.
Parameters: - blockchain (
Blockchain
) – The blockchain on top of which the new block should fit. - unconfirmed_transactions (
List
) – The transactions that should be considered for inclusion in this block. - reward_pubkey (
Signing
) – The key that should receive block rewards.
Return type: - blockchain (