update chainspec and populate with extra bootnodes
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
20c73d53b6
commit
9e3e01fecf
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ghost-wallet",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"description": "Browser extension to manage ghost blockchain light clients.",
|
||||
"main": "dist/src/index.js",
|
||||
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>",
|
||||
|
@ -22,24 +22,24 @@ export const wellKnownGenesisHashByChainId: Record<string, string> =
|
||||
networks.reduce((wellKnownChainIds, { chainId, value }) => {
|
||||
wellKnownChainIds[value] = chainId
|
||||
return wellKnownChainIds
|
||||
})
|
||||
}, {})
|
||||
|
||||
export const wellKnownChainIdByGenesisHash: Record<string, string> =
|
||||
networks.reduce((wellKnownChainName, { chainId, value }) => {
|
||||
wellKnownChainName[chainId] = value
|
||||
return wellKnownChainName
|
||||
})
|
||||
}, {})
|
||||
|
||||
export const wellKnownPrefixByGenesisHash: Record<string, number> =
|
||||
networks.reduce((wellKnownPrefixes, { chainId, prefix }) => {
|
||||
wellKnownPrefixes[chainId] = prefix
|
||||
return wellKnownPrefixes
|
||||
})
|
||||
}, {})
|
||||
|
||||
export const wellKnownDecimalsByGenesisHash: Record<string, number> =
|
||||
networks.reduce((wellKnownDecimals, { decimals, chainId }) => {
|
||||
wellKnownDecimals[chainId] = decimals
|
||||
return wellKnownDecimals
|
||||
})
|
||||
}, {})
|
||||
|
||||
export const CHANNEL_ID = "ghost-extension"
|
||||
|
@ -9,7 +9,7 @@ export async function getDefaultBootnodes(
|
||||
chain: string,
|
||||
): Promise<string[] | undefined> {
|
||||
if (
|
||||
networks.some(network => network.value.includes(chain))
|
||||
networks.map(network => network.value).includes(chain)
|
||||
) {
|
||||
const bootNodes = (
|
||||
await (
|
||||
|
Loading…
Reference in New Issue
Block a user