@@ -24,7 +24,6 @@ type Ledger struct {
type Store interface {
Add(Block)
- Reset()
Len() int
Last() Block
}
@@ -23,10 +23,6 @@ func (m *DiskStore) Add(b Block) {
-func (m *DiskStore) Reset() {
- m.chain.EraseAll()
-}
-
func (m *DiskStore) Len() int {
count, err := m.chain.Read("index")
if err != nil {
@@ -8,10 +8,6 @@ func (m *MemoryStore) Add(b Block) {
m.block = &b
-func (m *MemoryStore) Reset() {
- m.block = &Block{}
func (m *MemoryStore) Len() int {
return m.block.Index