Commit Graph
29 Commits
Author SHA1 Message Date
Jaco Greeff daf84b850d Mark FlatDb as closed when closed 2018-09-07 10:44:44 +02:00
Jaco Greeff 769e745e20 Progress calculation (snapshot) 2018-09-07 09:57:32 +02:00
Jaco Greeff 61357fb289 Add drop() to BaseDb 2018-09-07 09:29:01 +02:00
Jaco Greeff b5c466c410 Add size compare for before/after snapshot 2018-09-06 22:53:58 +02:00
Jaco Greeff c056480c28 Add size() to BaseDb 2018-09-06 22:48:51 +02:00
Jaco Greeff ea8ff283fc Rename snapshot method 2018-09-06 22:28:48 +02:00
Jaco Greeff 0707a238d5 Export rename(base, file) on BaseDb 2018-09-06 22:15:11 +02:00
Jaco Greeff 72bb79fdbd Show snapshot completion info 2018-09-06 21:30:10 +02:00
Jaco Greeff 6bb0f77c09 Return key count from snapshot creation 2018-09-06 21:09:32 +02:00
Jaco Greeff 56f80aa79b Update (linting) 2018-09-06 20:58:17 +02:00
Jaco Greeff d08f7832fd Write snapshot directly to destination Trie 2018-09-06 20:37:39 +02:00
Jaco Greeff 1149d8836b Cleanup/speedup snapshot creation entries 2018-09-06 18:03:57 +02:00
Jaco Greeff 0369450ff1 Expose snapshot methods in type 2018-09-06 17:52:20 +02:00
Jaco Greeff cc7227846e Add ability for the Trie to snapshot current root (#214)
* Add ability for the Trie to snapshot current root

* Allow ability to empty/drop database
2018-09-06 17:22:30 +02:00
Jaco Greeff 3b6407f9b7 LevelDb interface update (#207)
* LevelDb interface update

* Update disk interfaces to base + name
2018-09-02 11:00:39 +02:00
Jaco Greeff d15172d0b1 Log RLP failures with full input 2018-09-01 23:51:12 +02:00
Jaco Greeff 3bcd45cb28 Add getRoot/setRoot to interface 2018-09-01 23:42:55 +02:00
Jaco Greeff 1106579164 Export TriedDb type 2018-09-01 23:31:20 +02:00
Jaco Greeff 130163b74e Trie implements TxDb interface fully 2018-09-01 22:44:45 +02:00
Jaco Greeff e1135a665b Re-implementation of Patricia-Merkle Trie (#203)
* Start of trie-db re-implementation

* WIP commit

* More WIP

* WIP, seems complete, untested

* Ported trie-db operational

* Add Ethereum trie tests

* Use u8aConcat to construct u8a

* Basic RocksDb interface

* Combine engines into DB, expand tests

* Update Trie with transaction wrapper

* LevelDb (sync) interface

* Remove unused (for now) package (compatibility)

* trie-d -> trie-db-old, trie-db-ext -> trie-db

* Version bump

* Skip old trie tests (package to be removed)

* Skip tests (fixed)

* Remove non-used RocksDb spec

* Skip FileFlat tests (deprecated?)
2018-09-01 22:17:57 +02:00
Jaco Greeff 0c896363c5 Move trieRoot default to inheritance root (#184) 2018-07-30 11:50:19 +02:00
Jaco Greeff 07522512b3 Optionally pass root through (#183) 2018-07-30 10:46:19 +02:00
Jaco Greeff 43031d659a Disable debug logs in trie-db (#163)
* Disable logs in trie-db

* FRix unused imports

* Unused imports (part II)

* Ummm, yes.
2018-07-04 13:38:44 +02:00
Jaco Greeff 439a61a593 Keey trie-db package as async library (#162) 2018-07-03 22:03:02 +02:00
Jaco Greeff 0f6d43f62c Remove temp db interface, cleanup logging (#161) 2018-07-03 16:09:48 +02:00
Jaco Greeff 538069c24b Add basic hashdb (wrong package) (#160) 2018-07-03 15:06:38 +02:00
Jaco Greeff 243df6d030 Add MemoryDb Trie-wrapper (#159)
* Pass along hashing function (keccak or blake2)

* Allow syncify to handle Promises with no return values

* Add sync MemoryDb interface
2018-07-03 14:31:01 +02:00
Jaco Greeff 73477a2809 Add tslint (#151) 2018-06-27 10:15:46 +02:00
Jaco Greeff 78e01a0e16 Combine util, types & trie into common (#150)
* Pull in trie repo

* Bring in types repo
2018-06-26 21:26:51 +02:00