def _tip_gen(shard_state):
    coinbase_amount = (shard_state.env.quark_chain_config.shards[shard_state.full_shard_id].COINBASE_AMOUNT // 2)
    b = shard_state.get_tip().create_block_to_append()
    evm_state = shard_state.run_block(b)
    coinbase_amount_map = TokenBalanceMap(evm_state.block_fee_tokens)
    coinbase_amount_map.add({shard_state.env.quark_chain_config.genesis_token: coinbase_amount})
    b.finalize(evm_state=evm_state, coinbase_amount_map=coinbase_amount_map)
    return b
def _tip_gen(shard_state):
    coinbase_amount = (shard_state.env.quark_chain_config.shards[shard_state.full_shard_id].COINBASE_AMOUNT // 2)
    b = shard_state.get_tip().create_block_to_append()
    evm_state = shard_state.run_block(b)
    coinbase_amount_map = TokenBalanceMap(evm_state.block_fee_tokens)
    coinbase_amount_map.add({shard_state.env.quark_chain_config.genesis_token: coinbase_amount})
    b.finalize(evm_state=evm_state, coinbase_amount_map=coinbase_amount_map)
    return b