pub trait ClientCustomizations {
// Provided method
fn first_block_number_compatible_with_ed25519_zebra() -> Option<u32> { ... }
}
Expand description
A trait that must be implemented by all moon* runtimes executors.
This feature allows, for instance, to customize the client extensions according to the type of network. For the moment, this feature is only used to specify the first block compatible with ed25519-zebra, but it could be used for other things in the future.
Provided Methods§
sourcefn first_block_number_compatible_with_ed25519_zebra() -> Option<u32>
fn first_block_number_compatible_with_ed25519_zebra() -> Option<u32>
The host function ed25519_verify has changed its behavior in the substrate history, because of the change from lib ed25519-dalek to lib ed25519-zebra. Some networks may have old blocks that are not compatible with ed25519-zebra, for these networks this function should return the 1st block compatible with the new lib. If this function returns None (default behavior), it implies that all blocks are compatible with the new lib (ed25519-zebra).