citahub / cita_trie

Rust implementation of the Modified Patricia Tree (aka Trie).
Apache License 2.0
71 stars 28 forks source link

[DOM]feat(db): DB trait can be thread-safely copied #27

Closed yejiayu closed 5 years ago

yejiayu commented 5 years ago

ref https://github.com/cryptape/cita-vm/issues/35

I think the fundamental problem is the implementation of cita-trie and there are two issues that need to be solved.

  1. The DB can be thread-safely copied
  2. Provide immutable trie.

This PR solves the first issues.

mohanson commented 5 years ago

I have used your branch to update cita-vm, there is no problem.

But first, I suggest you could worked on this branch of cita-vm: https://github.com/mohanson/cita-vm/tree/executive-squashed-dirty1, if everything is ok, let's apply these changes to master or develop branch.