From 294b85b8db097ab4f17fa9b284859e207b28ef74 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Tue, 28 Nov 2017 21:07:07 +0100 Subject: [PATCH] [fix] ws2pHead V2 --- app/modules/ws2p/lib/WS2PCluster.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/modules/ws2p/lib/WS2PCluster.ts b/app/modules/ws2p/lib/WS2PCluster.ts index ff238cbfb..6467efd6c 100644 --- a/app/modules/ws2p/lib/WS2PCluster.ts +++ b/app/modules/ws2p/lib/WS2PCluster.ts @@ -107,14 +107,17 @@ export class WS2PCluster { if (current) { const myHead = this.sayHeadChangedTo(current.number, current.hash) 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)) { heads.push({ 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 -- GitLab