wip: truncate the change list iwhen dumpping.

This commit is contained in:
Tzu-Jung Lee 2018-08-08 12:21:58 -07:00
parent f7a4ec80a5
commit ee78f16ecc

View file

@ -125,7 +125,7 @@ func (nm *NodeMgr) Show(name string, ht claim.Height, dump bool) error {
}
fmt.Printf("[%s] %s\n", name, n)
if dump {
change.NewChangeList(nm.db, name).Load().Dump()
change.NewChangeList(nm.db, name).Load().Truncate(ht).Dump()
}
}
return nil