git.delta.rocks / unique-network / refs/commits / 3b5468eb6759

difftreelog

fix fork.jsonnet key moving

Yaroslav Bolyukin2023-06-05parent: #87b0901.patch.diff
in: master

1 file changed

modified.docker/forkless-config/fork.jsonnetdiffbeforeafterboth
1212
13local13local
14auraKeys = [14auraKeys = [
15 // AuraExt.Authorities, we don't have aura pallet enabled for some reason, to refer using cql api15 sourceChain.AuraExt._key.Authorities,
16 '0x3c311d57d4daf52904616cf69648081e5e0621c4869aa60c02be9adcc98a0d1d',16 sourceChain.Aura._key.Authorities,
17 // Aura.Authorities17 sourceChain.CollatorSelection._key.Candidates,
18 '0x57f8dc2f5ab09467896f47300f0424385e0621c4869aa60c02be9adcc98a0d1d',18 sourceChain.CollatorSelection._key.Invulnerables,
19],19],
2020
21// Keys, which should be migrated from passed spec, rather than from forked chain21// Keys, which should be migrated from passed spec, rather than from forked chain
22wantedKeys = [22wantedKeys = [
23 sourceChain.ParachainInfo._key.ParachainId,23 sourceChain.ParachainInfo._key.ParachainId,
24 sourceChain.Sudo._key.Key,24 sourceChain.Sudo._key.Key,
25 sourceChain.System.BlockHash._key['0'],25 sourceChain.System.BlockHash._key['0'],
26 // Always [69, 69, 69, ..., 69, 69, 69]
26 sourceChain.System._key.ParentHash,27 sourceChain.System._key.ParentHash,
27] + auraKeys,28] + auraKeys,
2829
29// Keys to remove from original chain30// Keys to remove from original chain
30unwantedPrefixes = [31unwantedPrefixes = [
31 // Aura.CurrentSlot32 sourceChain.Aura._key.CurrentSlot,
32 '0x57f8dc2f5ab09467896f47300f04243806155b3cd9a8c9e5e9a23fd5dc13a5ed',
33 // Ensure there will be no panics caused by unexpected kept state33 // Ensure there will be no panics caused by unexpected kept state
34 sourceChain.ParachainSystem._key.ValidationData,34 sourceChain.ParachainSystem._key.ValidationData,
35 sourceChain.ParachainSystem._key.RelayStateProof,35 sourceChain.ParachainSystem._key.RelayStateProof,
36 sourceChain.ParachainSystem._key.HostConfiguration,36 sourceChain.ParachainSystem._key.HostConfiguration,
37 sourceChain.ParachainSystem._key.LastRelayChainBlockNumber,
37 sourceChain.ParachainSystem._key.LastDmqMqcHead,38 sourceChain.ParachainSystem._key.LastDmqMqcHead,
38 // Part of head39 // Part of head
39 sourceChain.System._key.BlockHash,40 sourceChain.System._key.BlockHash,
72 genesis+: {73 genesis+: {
73 raw+: {74 raw+: {
74 top+: {75 top+: {
75 [totalIssuance]: cql.calc([76 [totalIssuance]: sourceChain._encode(typeNames.u128, cql.calc([
76 Munique,77 Munique,
77 if std.objectHas(super, totalIssuance) then sourceChain._decode(typeNames.u128, super[totalIssuance]) else '0',78 if std.objectHas(super, totalIssuance) then sourceChain._decode(typeNames.u128, super[totalIssuance]) else '0',
78 if std.objectHas(super, aliceAccount) then sourceChain._decode(typeNames.AccountInfo, super[aliceAccount]).data.free else '0',79 if std.objectHas(super, aliceAccount) then sourceChain._decode(typeNames.AccountInfo, super[aliceAccount]).data.free else '0',
79 '-', '+',80 '-', '+',
80 ]),81 ])),
81 [aliceAccount]: sourceChain._encode(typeNames.AccountInfo, {82 [aliceAccount]: sourceChain._encode(typeNames.AccountInfo, {
82 nonce: 0,83 nonce: 0,
83 consumers: 3,84 consumers: 3,