Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/components/Indexer/processors/BaseProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ export abstract class BaseEventProcessor {
.getCoreHandlers()
.getHandler(PROTOCOL_COMMANDS.NONCE)
.handle(getNonceTask)
nonceP2p = await streamToString(response.stream as Readable)
nonceP2p = String(
parseInt(await streamToString(response.stream as Readable)) + 1
)
} catch (error) {
const message = `Node exception on getting nonce from local nodeId ${nodeId}. Status: ${error.message}`
INDEXER_LOGGER.log(LOG_LEVELS_STR.LEVEL_ERROR, message)
Expand Down Expand Up @@ -423,7 +425,9 @@ export abstract class BaseEventProcessor {
}

// Convert stream to Uint8Array
const remoteNonce = await streamToString(response.stream as Readable)
const remoteNonce = String(
parseInt(await streamToString(response.stream as Readable)) + 1
)
INDEXER_LOGGER.debug(
`decryptDDO: Fetched fresh nonce ${remoteNonce} from remote node ${decryptorURL} for decrypt attempt`
)
Expand Down
Loading