ChainSafe / gossamer

🕸️ Go Implementation of the Polkadot Host
https://chainsafe.github.io/gossamer
GNU Lesser General Public License v3.0
427 stars 110 forks source link

(pkg/trie): Implement DB commit #3993

Closed dimartiro closed 3 days ago

dimartiro commented 1 month ago

We have to implement the commit method in TrieDB to flush the temporal changes into our DB. This method will be called in every Hash call so every time we need to calculate the trie root hash we are going to commit the pending changes