Function vm_version

Source
pub fn vm_version() -> Result<u64, SysError>
Available on non-crate feature native-simulator only.
Expand description

VM version syscall returns current running VM version, so far 2 values will be returned:

  • Error for Lina CKB-VM version
  • 1 for the new hardfork CKB-VM version.

This syscall consumes 500 cycles.