@gooddollar/bridge-app
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -84,3 +84,3 @@ "use strict"; | ||
let signedCheckPoint; | ||
const checkPointBlockNumber = maxTxBlockNumber + (this.registryBlockFrequency - (maxTxBlockNumber % this.registryBlockFrequency)); | ||
let checkPointBlockNumber = maxTxBlockNumber + (this.registryBlockFrequency - (maxTxBlockNumber % this.registryBlockFrequency)); | ||
if (!sourceTxBlockHash || sourceTxBlockHash === ethers_1.ethers.constants.HashZero) { | ||
@@ -106,3 +106,9 @@ if (getCheckpointFromEvents) { | ||
else { | ||
this.logger.info('getBlocksToSubmit found verified checkpoint:', { maxTxBlockNumber, sourceTxBlockHash }); | ||
checkPointBlockNumber = maxTxBlockNumber; | ||
this.logger.info('getBlocksToSubmit found verified checkpoint:', { | ||
minTxBlockNumber, | ||
checkPointBlockNumber, | ||
maxTxBlockNumber, | ||
sourceTxBlockHash, | ||
}); | ||
} | ||
@@ -109,0 +115,0 @@ const parentAndCheckpointBlocks = await this.getChainBlockHeaders(sourceChainId, minTxBlockNumber, checkPointBlockNumber); |
{ | ||
"name": "@gooddollar/bridge-app", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Minimalistic bridge", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -100,3 +100,3 @@ import { JsonRpcBatchProvider, JsonRpcProvider } from '@ethersproject/providers'; | ||
let signedCheckPoint; | ||
const checkPointBlockNumber = | ||
let checkPointBlockNumber = | ||
maxTxBlockNumber + (this.registryBlockFrequency - (maxTxBlockNumber % this.registryBlockFrequency)); | ||
@@ -129,3 +129,9 @@ | ||
} else { | ||
this.logger.info('getBlocksToSubmit found verified checkpoint:', { maxTxBlockNumber, sourceTxBlockHash }); | ||
checkPointBlockNumber = maxTxBlockNumber; //since latest required block is already verified we dont need checkpoint | ||
this.logger.info('getBlocksToSubmit found verified checkpoint:', { | ||
minTxBlockNumber, | ||
checkPointBlockNumber, | ||
maxTxBlockNumber, | ||
sourceTxBlockHash, | ||
}); | ||
} | ||
@@ -132,0 +138,0 @@ //in anycase fetch checkpoint + parent blocks, since we require to submit the block rlp header with proof |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
733248
11490