From d8a6cf702a873ea6e9085c43d268de460aa5e515 Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Mon, 1 May 2023 14:07:14 +0700 Subject: [PATCH] fix: expect platformNodeID to be a hex string --- lib/transaction/payload/proupservtxpayload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction/payload/proupservtxpayload.js b/lib/transaction/payload/proupservtxpayload.js index 946037dd6..225dd66f4 100644 --- a/lib/transaction/payload/proupservtxpayload.js +++ b/lib/transaction/payload/proupservtxpayload.js @@ -119,7 +119,7 @@ ProUpServTxPayload.fromBuffer = function (rawPayload) { .toString('hex'); if (payload.version >= 2 && payload.type === MASTERNODE_TYPE_HP) { - payload.platformNodeID = payloadBufferReader.read(PLATFORM_NODE_ID_SIZE).reverse(); + payload.platformNodeID = payloadBufferReader.read(PLATFORM_NODE_ID_SIZE).reverse().toString('hex'); payload.platformP2PPort = payloadBufferReader.readUInt16LE(); payload.platformHTTPPort = payloadBufferReader.readUInt16LE(); }