update chainspec and populate with extra bootnodes

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-08-17 16:02:09 +03:00
parent 20c73d53b6
commit 9e3e01fecf
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
4 changed files with 25 additions and 16 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "ghost-wallet", "name": "ghost-wallet",
"version": "0.1.2", "version": "0.1.3",
"description": "Browser extension to manage ghost blockchain light clients.", "description": "Browser extension to manage ghost blockchain light clients.",
"main": "dist/src/index.js", "main": "dist/src/index.js",
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>", "author": "Uncle f4ts0 <f4ts0@ghostchain.io>",

View File

@ -22,24 +22,24 @@ export const wellKnownGenesisHashByChainId: Record<string, string> =
networks.reduce((wellKnownChainIds, { chainId, value }) => { networks.reduce((wellKnownChainIds, { chainId, value }) => {
wellKnownChainIds[value] = chainId wellKnownChainIds[value] = chainId
return wellKnownChainIds return wellKnownChainIds
}) }, {})
export const wellKnownChainIdByGenesisHash: Record<string, string> = export const wellKnownChainIdByGenesisHash: Record<string, string> =
networks.reduce((wellKnownChainName, { chainId, value }) => { networks.reduce((wellKnownChainName, { chainId, value }) => {
wellKnownChainName[chainId] = value wellKnownChainName[chainId] = value
return wellKnownChainName return wellKnownChainName
}) }, {})
export const wellKnownPrefixByGenesisHash: Record<string, number> = export const wellKnownPrefixByGenesisHash: Record<string, number> =
networks.reduce((wellKnownPrefixes, { chainId, prefix }) => { networks.reduce((wellKnownPrefixes, { chainId, prefix }) => {
wellKnownPrefixes[chainId] = prefix wellKnownPrefixes[chainId] = prefix
return wellKnownPrefixes return wellKnownPrefixes
}) }, {})
export const wellKnownDecimalsByGenesisHash: Record<string, number> = export const wellKnownDecimalsByGenesisHash: Record<string, number> =
networks.reduce((wellKnownDecimals, { decimals, chainId }) => { networks.reduce((wellKnownDecimals, { decimals, chainId }) => {
wellKnownDecimals[chainId] = decimals wellKnownDecimals[chainId] = decimals
return wellKnownDecimals return wellKnownDecimals
}) }, {})
export const CHANNEL_ID = "ghost-extension" export const CHANNEL_ID = "ghost-extension"

View File

@ -9,7 +9,7 @@ export async function getDefaultBootnodes(
chain: string, chain: string,
): Promise<string[] | undefined> { ): Promise<string[] | undefined> {
if ( if (
networks.some(network => network.value.includes(chain)) networks.map(network => network.value).includes(chain)
) { ) {
const bootNodes = ( const bootNodes = (
await ( await (