gossamer icon indicating copy to clipboard operation
gossamer copied to clipboard

feat(wasmer): get and cache state version in instance context

Open qdm12 opened this issue 2 years ago • 1 comments

Changes

Note this caches the state version for usages in several import functions (see #2664)

  • [x] Codec support for Core_version and state_version
  • [x] Cache state version in runtime instance context
    • Set when creating instance
    • Update when updating runtime code
  • [x] Figure out how to handle Core_version not there in test runtimes

Tests

go test -tags integration github.com/ChainSafe/gossamer/lib/runtime/...

Issues

One more step towards #2418

Primary Reviewer

@timwu20

qdm12 avatar Aug 11 '22 18:08 qdm12

Codecov Report

Merging #2747 (20a41ee) into development (426569a) will decrease coverage by 0.08%. The diff coverage is 61.36%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #2747      +/-   ##
===============================================
- Coverage        63.12%   63.03%   -0.09%     
===============================================
  Files              213      213              
  Lines            27034    27050      +16     
===============================================
- Hits             17064    17051      -13     
- Misses            8420     8446      +26     
- Partials          1550     1553       +3     

codecov[bot] avatar Aug 16 '22 01:08 codecov[bot]

:tada: This PR is included in version 0.7.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Nov 23 '22 18:11 github-actions[bot]