Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@gavofyork
Copy link
Member

@gavofyork gavofyork commented Aug 20, 2018

  • Use blake2 instead of xxhash for guaranteed safety
  • Simplify by caching the version rather than the compatibility (this makes it possible to provide logs to debug any potential problems)
  • Additional logging
  • Remove an .expect

- Use blake2 instead of xxhash for guaranteed safety
- Simplify by caching the version rather than the compatibility
- Additional logging
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]
//#![cfg_attr(not(feature = "std"), feature(alloc))]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is correct, but needed it to compile. @tomusdrw ?

@gavofyork gavofyork added the A0-please_review Pull request needs code review. label Aug 20, 2018
@gavofyork gavofyork requested review from arkpar and rphmeier August 20, 2018 14:44
RuntimePreproc::ValidCode(module, version)
}
})
Err(_) => RuntimePreproc::InvalidCode,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logging error here could be useful.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will address in next PR.

@gavofyork gavofyork merged commit 2722c58 into master Aug 21, 2018
@gavofyork gavofyork deleted the gav-fix-cache branch August 21, 2018 08:20
gavofyork added a commit that referenced this pull request Aug 21, 2018
- Use blake2 instead of xxhash for guaranteed safety
- Simplify by caching the version rather than the compatibility
- Additional logging
dvdplm added a commit that referenced this pull request Aug 27, 2018
…and-rlpcodec

* master:
  Contract signatures checking (#478)
  extrinsic-pool: use retain() (#613)
  rename Polkadot to Substrate in the license header via following four commands (#614)
  typo fixes (#608)
  RPC: Block number to block hash (#584)
  Minor fixes for nightly 2018-08-18 (#600)
  Time-based transaction banning (#594) (#602)
  cargo --force to allow CI to build. (#599)
  Fix logging (#587)
  Fix runtime version cache (#586)
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
liuchengxu pushed a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants