Allow GNUSparse for genesis.bin (#13704)
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user