Skip to content

Commit

Permalink
fix: expect platformNodeID to be a hex string
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed May 1, 2023
1 parent 5e08f69 commit d8a6cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transaction/payload/proupservtxpayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit d8a6cf7

Please sign in to comment.