Complete the code to define a sidechain name.
sidechain_name = "[1]"
The variable sidechain_name should be set to a valid sidechain identifier, such as "sidechain1".
Complete the code to initialize the sidechain block height.
sidechain_block_height = [1]The block height should be an integer starting at 0 for a new sidechain.
Fix the error in the function that checks if a block belongs to the sidechain.
def is_sidechain_block(block): return block.chain_id == [1]
The function should compare block.chain_id to the variable sidechain_id that stores the sidechain's ID.
Fill both blanks to create a dictionary comprehension that maps block hashes to their heights only for sidechain blocks.
sidechain_blocks = {block.hash: block.[1] for block in blocks if block.chain_id [2] sidechain_id}The dictionary maps each block's hash to its height only if the block's chain_id equals the sidechain_id.
Fill all three blanks to create a function that returns a list of sidechain block hashes with height greater than a given value.
def get_sidechain_hashes(min_height): return [block.[1] for block in blocks if block.chain_id == [2] and block.[3] > min_height]
The function returns hashes of blocks where the chain ID matches the sidechain and the block height is greater than min_height.