Do not include :code in the storage proof if not required (#480)

This is basically a hack that prevents the inclusion of `:code` in the
storage proof. A proper fix requires some changes to the trie crate to
not include nodes that aren't read.
This commit is contained in:
Bastian Köcher
2021-06-07 16:17:19 +02:00
committed by GitHub
parent 33908c1414
commit 794bc23de4
10 changed files with 59 additions and 8 deletions
+5
View File
@@ -178,6 +178,7 @@ fn testnet_genesis(
authorities: initial_authorities,
},
cumulus_pallet_aura_ext: Default::default(),
cumulus_pallet_parachain_system: Default::default(),
}
}
@@ -190,6 +191,7 @@ fn shell_testnet_genesis(parachain_id: ParaId) -> shell_runtime::GenesisConfig {
changes_trie_config: Default::default(),
},
parachain_info: shell_runtime::ParachainInfoConfig { parachain_id },
cumulus_pallet_parachain_system: Default::default(),
}
}
@@ -366,6 +368,7 @@ fn statemint_genesis(
// of this.
pallet_aura: Default::default(),
cumulus_pallet_aura_ext: Default::default(),
cumulus_pallet_parachain_system: Default::default(),
}
}
@@ -540,6 +543,7 @@ fn statemine_genesis(
},
pallet_aura: Default::default(),
cumulus_pallet_aura_ext: Default::default(),
cumulus_pallet_parachain_system: Default::default(),
}
}
@@ -722,5 +726,6 @@ fn westmint_genesis(
// of this.
pallet_aura: Default::default(),
cumulus_pallet_aura_ext: Default::default(),
cumulus_pallet_parachain_system: Default::default(),
}
}