Skip to content
  • Steve Biedermann's avatar
    Improve remote-externalities (#8397) · f9b6c869
    Steve Biedermann authored
    
    
    * make builder generic to allow using different hash types
    
    * expose "cache", "block_number" and "modules" as cli options for live state
    
    * Change Builder to be generic over Block instead of Hash
    add rpc method to get hash from block number
    allow passing of block numbers and hashes
    
    * fix live tests
    
    * fix formatting in utils/frame/remote-externalities/src/lib.rs
    
    Co-authored-by: default avatarKian Paimani <[email protected]>
    
    * change cli to only accept block hashes
    break up lines that were too long
    use starts_with instead of match s.get
    use unwrap_or_default instead of unwrap_or(Vec::new())
    
    * improve error message
    
    * fix indentation
    
    * replace Block with sp_runtime::testing::Block
    
    * Move cache test out of remote-test feature tests
    Add cache file (contains only "Proxy" module) for local test
    
    * simplify match expression to and_then
    
    Co-authored-by: default avatarKian Paimani <[email protected]>
    
    * Combine the two cfg attributes into one
    
    Co-authored-by: default avatarDavid <[email protected]>
    
    * Restrict visibility of test_prelude use statements to crate level
    
    * Fix usage of and_then
    
    * Rename cache to snapshot
    
    * Remove fully qualified path for Debug
    
    * Refine naming. snapshot to state_snapshot
    
    * Remove unnecessary comment
    
    Co-authored-by: default avatarKian Paimani <[email protected]>
    
    Co-authored-by: default avatarKian Paimani <[email protected]>
    Co-authored-by: default avatarDavid <[email protected]>
    f9b6c869