Allow GNUSparse for genesis.bin (#13704)

This commit is contained in:
Ryo Onodera
2020-11-20 05:29:19 +09:00
committed by GitHub
parent 43d5e47ea9
commit 397cf726fc

View File

@ -227,6 +227,7 @@ fn unpack_genesis<A: Read, P: AsRef<Path>>(
fn is_valid_genesis_archive_entry(parts: &[&str], kind: tar::EntryType) -> bool { fn is_valid_genesis_archive_entry(parts: &[&str], kind: tar::EntryType) -> bool {
trace!("validating: {:?} {:?}", parts, kind); trace!("validating: {:?} {:?}", parts, kind);
match (parts, kind) { match (parts, kind) {
(["genesis.bin"], GNUSparse) => true,
(["genesis.bin"], Regular) => true, (["genesis.bin"], Regular) => true,
(["rocksdb"], Directory) => true, (["rocksdb"], Directory) => true,
(["rocksdb", ..], GNUSparse) => true, (["rocksdb", ..], GNUSparse) => true,