Skip to content
Snippets Groups Projects
Unverified Commit 294b85b8 authored by Éloïs's avatar Éloïs
Browse files

[fix] ws2pHead V2

parent 3a604a76
No related branches found
No related tags found
3 merge requests!1222Add startup scripts,!1220Stable/ws2p v1.1 trymerge,!1208Stable/ws2p v1.1
...@@ -107,14 +107,17 @@ export class WS2PCluster { ...@@ -107,14 +107,17 @@ export class WS2PCluster {
if (current) { if (current) {
const myHead = this.sayHeadChangedTo(current.number, current.hash) const myHead = this.sayHeadChangedTo(current.number, current.hash)
const blockstamp = [current.number, current.hash].join('-') const blockstamp = [current.number, current.hash].join('-')
this.headsCache[myFullId] = { blockstamp, message: myHead.message,sig: myHead.sig, messageV2: myHead.message, sigV2: myHead.sig } this.headsCache[myFullId] = { blockstamp, message: myHead.message, sig: myHead.sig, messageV2: myHead.messageV2, sigV2: myHead.sigV2, step:myHead.step }
} }
} }
for (const ws2pFullId of Object.keys(this.headsCache)) { for (const ws2pFullId of Object.keys(this.headsCache)) {
heads.push({ heads.push({
message: this.headsCache[ws2pFullId].message, message: this.headsCache[ws2pFullId].message,
sig: this.headsCache[ws2pFullId].sig sig: this.headsCache[ws2pFullId].sig,
messageV2: this.headsCache[ws2pFullId].messageV2,
sigV2: this.headsCache[ws2pFullId].sigV2,
step: this.headsCache[ws2pFullId].step
}) })
} }
return heads return heads
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment