Undo the gzip encoding

This commit is contained in:
Aditya Kulkarni
2020-05-09 16:51:04 -07:00
parent 664e9512bb
commit cbffd69c66
2 changed files with 8 additions and 11 deletions

View File

@@ -429,8 +429,8 @@ impl LightClient {
let version = inp.read_u64::<LittleEndian>().unwrap();
println!("Reading wallet version {}", version);
// After version 5, we're writing the rest of the file as a compressed stream (gzip)
let mut reader: Box<dyn Read> = if version <= 4 {
// At version 5, we're writing the rest of the file as a compressed stream (gzip)
let mut reader: Box<dyn Read> = if version != 5 {
Box::new(inp)
} else {
Box::new(Decoder::new(inp).unwrap())