Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

journaldb changes #10929

Merged
merged 7 commits into from
Aug 6, 2019
Merged

journaldb changes #10929

merged 7 commits into from
Aug 6, 2019

Conversation

debris
Copy link
Collaborator

@debris debris commented Jul 30, 2019

The goal of this pr is to simplify a bit journaldb interface and usage

changes:

  • edition 2018
  • removed traits KeyedHashDB and AsKeyedHashDB as they are redundant
  • moved fn keys() from KeyedHashDB to JournalDB as it is used only to check journal entries in ethcore block tests
  • remove KeyedHashDB implementation for ProofCheck and Proving as it was never used
  • commit_batch and inject_batch are no longer a part of trait declaration, but they are independent functions hidden under cfg(test) gate
  • JournalDB trait is now declared in lib.rs file
  • overlaydb is no longer a pub module
  • removed unused revert and commit_refs from OverlayDB

@debris debris added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Jul 30, 2019
@debris debris requested review from dvdplm and ordian July 30, 2019 18:37
Copy link
Collaborator

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Looks good.

util/journaldb/src/lib.rs Outdated Show resolved Hide resolved
@ordian ordian added this to the 2.7 milestone Jul 31, 2019
@ordian ordian added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jul 31, 2019
Copy link
Collaborator

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

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

Lovely. journaldb was in dire need of some attention, good stuff.

@dvdplm dvdplm merged commit 4695452 into master Aug 6, 2019
@ordian ordian deleted the journaldb-changes branch August 7, 2019 10:34
ordian added a commit that referenced this pull request Aug 7, 2019
* master:
  journaldb changes (#10929)
  Allow default block parameter to be blockHash (#10932)
  Enable sealing when engine is ready (#10938)
  Fix some warnings and typos. (#10941)
  Updated security@parity.io key (#10939)
  Change the return type of step_inner function. (#10940)
  get rid of hidden mutability of Spec (#10904)
  simplify BlockReward::reward implementation (#10906)
  Kaspersky AV whitelisting (#10919)
  additional arithmetic EVM opcode benchmarks (#10916)
  [Cargo.lock] cargo update -p crossbeam-epoch (#10921)
  Fixes incorrect comment. (#10913)
  Add file path to disk map write/read warnings (#10911)
dvdplm added a commit that referenced this pull request Aug 7, 2019
* master:
  unify loading spec && further spec cleanups (#10948)
  refactor: Refactor evmbin CLI (#10742)
  journaldb changes (#10929)
ordian added a commit that referenced this pull request Aug 15, 2019
* master:
  [evmbin] fix compilation (#10976)
  Update to latest trie version. (#10972)
  [blooms-db] Fix benchmarks (#10974)
  Fix ethcore/benches build. (#10964)
  tx-pool: accept local tx with higher gas price when pool full (#10901)
  Disable unsyncable expanse chain (#10926)
  Extract Machine from ethcore (#10949)
  removed redundant state_root function from spec, improve spec error types (#10955)
  Add support for Energy Web Foundation's new chains (#10957)
  [evmbin] add more tests to main.rs (#10956)
  Fix compiler warnings in util/io and upgrade to edition 2018 Upgrade mio to latest (#10953)
  unify loading spec && further spec cleanups (#10948)
  refactor: Refactor evmbin CLI (#10742)
  journaldb changes (#10929)
  Allow default block parameter to be blockHash (#10932)
  Enable sealing when engine is ready (#10938)
  Fix some warnings and typos. (#10941)
  Updated security@parity.io key (#10939)
  Change the return type of step_inner function. (#10940)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants