![]() ![]() It is important to understand the computational resources required to execute different functions-including runtime functions like on_initialize and verify_unsigned-to keep the runtime safe and to enable the runtime to include or exclude transactions based on the resources available. If you use benchmarking to assign accurate weights to function calls, you can prevent your blockchain from being overloaded and unable to produce blocks or vulnerable to denial of service (DoS) attacks by malicious actors. ![]() However, determining the appropriate weight to assign to the functions in your pallets can be a difficult task.īenchmarking enables you to measure the time it takes to execute different functions in the runtime and under different conditions. This flexibility enables you to design complex and interactive pallets and implement sophisticated runtime logic. Substrate and FRAME provide a flexible framework for developing custom logic for your blockchain. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |