Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parachain template - template pallet doesn't show in benchmark list. #6375

Closed
dudo50 opened this issue Nov 5, 2024 · 1 comment
Closed

Comments

@dudo50
Copy link
Contributor

dudo50 commented Nov 5, 2024

Once I compile Parachain template with flag runtime-benchmarks and run following command on it:
./target/release/parachain-template-node benchmark \pallet --list

It only lists following pallets:

pallet, extrinsic
cumulus_pallet_parachain_system, enqueue_inbound_downward_messages
cumulus_pallet_xcmp_queue, enqueue_xcmp_message
cumulus_pallet_xcmp_queue, on_idle_good_msg
cumulus_pallet_xcmp_queue, on_idle_large_msg
cumulus_pallet_xcmp_queue, resume_channel
cumulus_pallet_xcmp_queue, set_config_with_u32
cumulus_pallet_xcmp_queue, suspend_channel
cumulus_pallet_xcmp_queue, take_first_concatenated_xcm
frame_system, apply_authorized_upgrade
frame_system, authorize_upgrade
frame_system, kill_prefix
frame_system, kill_storage
frame_system, remark
frame_system, remark_with_event
frame_system, set_code
frame_system, set_heap_pages
frame_system, set_storage
pallet_balances, burn_allow_death
pallet_balances, burn_keep_alive
pallet_balances, force_adjust_total_issuance
pallet_balances, force_set_balance_creating
pallet_balances, force_set_balance_killing
pallet_balances, force_transfer
pallet_balances, force_unreserve
pallet_balances, transfer_all
pallet_balances, transfer_allow_death
pallet_balances, transfer_keep_alive
pallet_balances, upgrade_accounts
pallet_collator_selection, add_invulnerable
pallet_collator_selection, leave_intent
pallet_collator_selection, new_session
pallet_collator_selection, note_author
pallet_collator_selection, register_as_candidate
pallet_collator_selection, remove_invulnerable
pallet_collator_selection, set_candidacy_bond
pallet_collator_selection, set_desired_candidates
pallet_collator_selection, set_invulnerables
pallet_collator_selection, take_candidate_slot
pallet_collator_selection, update_bond
pallet_message_queue, bump_service_head
pallet_message_queue, execute_overweight_page_removed
pallet_message_queue, execute_overweight_page_updated
pallet_message_queue, ready_ring_knit
pallet_message_queue, ready_ring_unknit
pallet_message_queue, reap_page
pallet_message_queue, service_page_base_completion
pallet_message_queue, service_page_base_no_completion
pallet_message_queue, service_page_item
pallet_message_queue, service_queue_base
pallet_session, purge_keys
pallet_session, set_keys
pallet_sudo, check_only_sudo_account
pallet_sudo, remove_key
pallet_sudo, set_key
pallet_sudo, sudo
pallet_sudo, sudo_as
pallet_timestamp, on_finalize
pallet_timestamp, set

For some reason, benchmarks from the template pallet are not included. How can I include them?
What I tried:

I checked if the pallet-parachain-template/runtime-benchmarks is included in cargo.toml files in runtime and node folder and it is.

Am I missing something? Is the process of generating weight.rs different now?

I wasn't able to find any up-to-date guide other than deprecated substrate docs.

Thanks!

@dudo50 dudo50 changed the title Parachain template doesn't show in benchmark list. Parachain template - template pallet doesn't show in benchmark list. Nov 5, 2024
@dudo50
Copy link
Contributor Author

dudo50 commented Nov 6, 2024

I found where it was missing. It wasn't added to benchmarks.rs in chain runtime.

@dudo50 dudo50 closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant