celestiaorg / smt

A Go library that implements a Sparse Merkle tree for a key-value map.
https://godoc.org/github.com/celestiaorg/smt
MIT License
138 stars 53 forks source link

change mapstore interface to make tm-db injectable #7

Closed tac0turtle closed 4 years ago

tac0turtle commented 4 years ago

There are some advantages that can be taken advantage of with tm-db. Batch writing is one that comes to mind. I didn't do any testing but I'm guessing IO takes a hit with this implementation.

close: #6

musalbas commented 4 years ago

Looks like TestDeepSparseMerkleSubTreeBasic is failing because some of the if statements were changed differently.

musalbas commented 4 years ago

Thanks for this.