diff --git a/src/p2p/Self.ts b/src/p2p/Self.ts index 8291c93c8..28b7791f9 100644 --- a/src/p2p/Self.ts +++ b/src/p2p/Self.ts @@ -1,4 +1,5 @@ import { P2P } from '@shardus/types' +import { version as shardusVersion } from '../../package.json' import { NodeStatus, SignedObject } from '@shardus/types/build/src/p2p/P2PTypes' import * as events from 'events' import * as log4js from 'log4js' @@ -32,6 +33,7 @@ import { submitStandbyRefresh } from './Join/v2/standbyRefresh' import { getNumArchivers } from './Archivers' import { currentQuarter } from './CycleCreator' import { Utils } from '@shardus/types' +import { version } from 'os' /** STATE */ @@ -995,6 +997,10 @@ async function getActiveNodesFromArchiver( archiver: ActiveNode ): Promise> { const nodeInfo = getPublicNodeInfo() + const joinRequest = { + ...nodeInfo, + version: shardusVersion + } const seedListResult: Result< P2P.P2PTypes.SignedObject, Error @@ -1002,7 +1008,7 @@ async function getActiveNodesFromArchiver( archiver, 'nodelist', Context.crypto.sign({ - nodeInfo, + joinRequest, }), 10000 )