Skip to content

Commit

Permalink
Send node version while joining as a first node during restart
Browse files Browse the repository at this point in the history
  • Loading branch information
tanuj-shardeum committed Sep 6, 2024
1 parent 1e3fdd3 commit b73754a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/p2p/Self.ts
Original file line number Diff line number Diff line change
Expand Up @@ -996,14 +996,18 @@ async function getActiveNodesFromArchiver(
archiver: ActiveNode
): Promise<P2P.P2PTypes.SignedObject<SeedNodesList>> {
const nodeInfo = getPublicNodeInfo()
const joinRequest = {
nodeInfo: nodeInfo,
appJoinData: Context.shardus.app.getNodeInfoAppData(),
}
const seedListResult: Result<
P2P.P2PTypes.SignedObject<SeedNodesList>,
Error
> = await Archivers.postToArchiver(
archiver,
'nodelist',
Context.crypto.sign({
nodeInfo,
joinRequest,
}),
10000
)
Expand Down

0 comments on commit b73754a

Please sign in to comment.