aboutsummaryrefslogtreecommitdiffstats
path: root/blockdb/interfaces.go
Commit message (Collapse)AuthorAgeFilesLines
* core: move blockdb into core package and minor change on governance ↵Wei-Ning Huang2018-09-171-70/+0
| | | | | | | interface (#110) Since third party apps will possibly implement their only blockdb class, it make sense for the interface to be in core. Also add GetNumShards into the governance interface.
* blockdb: allow to dump blocks to json-encoded fileMission Liao2018-07-311-3/+20
| | | | | | | | | | | | - Allow to dump blockdb to a json file - Compared to leveldb, a json file is easier to trace. - Add interfaces block database: - Close would be required by database that needs cleanup. - BlockIterator is required when we need to access 'all' blocks, adding a new method 'GetAll' as the constructor for iterators. - Remove GetByValidatorAndHeight from blockdb.Reader - This function is not used anywhere, to make interface minimum, remove it. - Fix typo: backend -> backed
* Implement blockdb levelDB backend (#6)Mission Liao2018-07-221-6/+0
|
* Fix typos and add .gitignore (#2)Haoping Ku2018-07-171-3/+3
| | | | | * Fix typos and add .gitignore * Add more rule on .gitignore
* Initial implementation of DEXON consensus algorithmWei-Ning Huang2018-07-161-0/+59