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 12, 2018

Remake of #297 with Keccak flavoured Hasher and RlpCodec.

dvdplm added 30 commits July 11, 2018 11:53
…bstrate-state-machine-generic

* refactor/environmental-generic-traits:
  whitespace
  Teach environmental! about generics
  Validator side of the collation protocol. (#295)
  Improve Wasm extern errors and increase heap (#299)
  Issue 212 - refactor Checkable trait to be more generic (#287)
  Fix for nightly 2018-07-10 (#296)
  PoC-2 tweaks (#293)
Remove unused U512
Add test to ensure H256 impls heapsizeof
* master: (86 commits)
  Make contract a separate runtime module (#345)
  Version bump (#450)
  DB-based blockchain data cache for light nodes (#251)
  Update libp2p again (#445)
  Update version on git head change (#444)
  Fix the public key of bootnode 3 (#441)
  Update libp2p (#442)
  Switch to the master branch of libp2p (#427)
  Export ws port 9944 and add doc (#440)
  Iterate over overlay to decide which keys to purge (#436)
  Exit signal gets its own trait (#433)
  Add docker image (#375)
  Reset peers.json if the content is not loadable (#405)
  Limit number of incoming connections (#391)
  Fix memory leaks in libp2p (#432)
  Do not queue empty blocks set for import (#431)
  5 random fixes (#1) (#435)
  Chore: fix typo (#434)
  Prevent building invalid blocks (#430)
  Better logging for public key mismatch (#429)
  ...
Use rlp from master so dependencies do not mess up the scope
* master:
  Collator for the "adder" (formerly basic-add) parachain and various small fixes (#438)
  Storage changes subscription (#464)
  Wasm execution optimizations (#466)
  Fix the --key generation (#475)
  Fix typo in service.rs (#472)
  Fix session phase in early-exit (#453)
  Make ping unidirectional (#458)
  Update README.adoc
dvdplm added 4 commits August 14, 2018 11:28
* master:
  Less verbosity (#546)
  Fetching storage proofs by light client (#252)
  Gitlab CI build file for linux. (#552)
  Vote out offline authorities (#524)
  fix block body fetch for availability pruning (#539)
  Continue sync after ancestry search (#538)
  Docs Typo Fixes (#534)
  don't wait for all futures to resolve before shutdown (#536)
  Update libp2p and some log (#532)
  Mh public key for telemetry (#526)
  Td bps (#527)
  Reserved peers CLI flag (#528)
* master:
  Update some outdated slashing tests in runtime (#565)
  Update libp2p (#559)
  Reject too large transactions (#558)
  cli: add min-peers and max-peers (#557)
  RPC: query historical storage entries (#537)
@dvdplm dvdplm self-assigned this Aug 14, 2018
@dvdplm dvdplm added A3-in_progress Pull request is in progress. No review needed at this stage. M5-dependencies labels Aug 14, 2018
@dvdplm dvdplm added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Aug 14, 2018
@dvdplm dvdplm requested review from arkpar and rphmeier August 14, 2018 14:34
let result = if len == 0 {
keccak256(&[0u8; 0])
} else {
keccak256(&this.memory.get(data, len as usize).map_err(|_| UserError("Invalid attempt to get data in ext_keccak256"))?)
Copy link
Contributor

Choose a reason for hiding this comment

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

unfortunate that we have to reallocate the data from memory. but it's a limitation of WASM AFAIK now

@rphmeier rphmeier added A8-looksgood and removed A0-please_review Pull request needs code review. labels Aug 15, 2018
rphmeier
rphmeier previously approved these changes Aug 15, 2018
@rphmeier rphmeier merged commit 690f52f into master Aug 15, 2018
@rphmeier rphmeier deleted the refactor/substrate-state-machine-generic branch August 15, 2018 11:14
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants