This repository has been archived by the owner on Nov 11, 2022. It is now read-only.
BEEFY gadget should recognize BeefyApi
updates
#129
Labels
Milestone
Currently, the BEEFY gadget is using a somewhat crude approach in order to detect the availability of an on-chain BEEFY pallet. One situation which would cause some mayhem, for example, is the removal of the BEEFY pallet as part of a runtime update.
The canonical approach followed by the BEEFY gadget should actually be to follow runtime updates and explicitly check for the availability of the
BeefyApi
. This would require basically two things:frame_system::pallet::Event::CodeUpdated
eventssp_api::ProvideRuntimeApi::runtime_api()::has_api()
orhas_api_with()
and verify that the new runtime provides theBeefyApi
.The text was updated successfully, but these errors were encountered: