undo gzip

This commit is contained in:
DenioD
2020-05-16 17:11:11 +02:00
parent 431847ab49
commit 32ca60735b
2 changed files with 8 additions and 11 deletions

View File

@@ -426,8 +426,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())