node: sketch of debug node logic

This commit is contained in:
William Banfield
2021-08-02 12:08:15 -04:00
parent dc7c212c41
commit df669c7bed
16 changed files with 416 additions and 165 deletions
+4
View File
@@ -283,6 +283,10 @@ func (bs *BlockStore) LoadSeenCommit() *types.Commit {
return commit
}
func (bs *BlockStore) Close() error {
return bs.db.Close()
}
// PruneBlocks removes block up to (but not including) a height. It returns the number of blocks pruned.
func (bs *BlockStore) PruneBlocks(height int64) (uint64, error) {
if height <= 0 {