ledger-tool/: Include full validator voting history in fork-graph (#6756)

This commit is contained in:
Michael Vines
2019-11-05 19:40:00 -07:00
committed by GitHub
parent 0c2bf022fa
commit 09e648f957
3 changed files with 32 additions and 19 deletions

View File

@ -1139,9 +1139,12 @@ impl Blocktree {
serialized_shred
.expect("Shred must exist if shred index was included in a range"),
)
.map_err(|_| {
.map_err(|err| {
BlocktreeError::InvalidShredData(Box::new(bincode::ErrorKind::Custom(
"Could not reconstruct shred from shred payload".to_string(),
format!(
"Could not reconstruct shred from shred payload: {:?}",
err
),
)))
})
})