Pin Polkadot CC1 ahead of Kusama (#265)

This commit is contained in:
Maciej Hirsz
2020-05-26 19:23:32 +02:00
committed by GitHub
parent be12d5f0f6
commit 246ab4e251
3 changed files with 17 additions and 9 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import {
Node,
UpdateBound,
ChainData,
PINNED_CHAIN,
PINNED_CHAINS,
} from './state';
import { PersistentSet } from './persist';
import { getHashData, setHashData } from './utils';
@@ -518,7 +518,7 @@ export class Connection {
let topChain: Maybe<ChainData> = null;
for (const chain of chains.values()) {
if (chain.label === PINNED_CHAIN) {
if (PINNED_CHAINS[chain.label] === 1) {
topChain = chain;
break;
}