Allowing for dumping of larger sum trees on error

This commit is contained in:
Ignotus Peverell 2017-11-01 19:32:49 -04:00
parent 47255f1250
commit 5b462ee2fc
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -391,7 +391,7 @@ where
/// only prints the last 8 nodes.
pub fn dump(&self, short: bool) {
let sz = self.unpruned_size();
if sz > 600 {
if sz > 2000 && !short {
return;
}
let start = if short && sz > 7 { sz / 8 - 1 } else { 0 };