btcrelay-bitcoind
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -19,3 +19,4 @@ import { BtcRelay, BtcStoredHeader, RelaySynchronizer } from "crosslightning-base"; | ||
latestBlockHeader: BitcoindBlock; | ||
startForkId: number; | ||
}>; | ||
} |
@@ -27,2 +27,3 @@ "use strict"; | ||
}; | ||
let startForkId = null; | ||
const { resultStoredHeader, resultBitcoinHeader } = yield this.btcRelay.retrieveLatestKnownBlockLog(); | ||
@@ -62,2 +63,4 @@ cacheData.lastStoredHeader = resultStoredHeader; | ||
} | ||
if (cacheData.forkId !== -1 && cacheData.forkId !== 0) | ||
startForkId = cacheData.forkId; | ||
txsList.push(cacheData.tx); | ||
@@ -95,3 +98,4 @@ for (let storedHeader of cacheData.computedCommitedHeaders) { | ||
btcRelayTipBlockHash, | ||
latestBlockHeader: spvTipBlockHeader | ||
latestBlockHeader: spvTipBlockHeader, | ||
startForkId | ||
}; | ||
@@ -98,0 +102,0 @@ }); |
{ | ||
"name": "btcrelay-bitcoind", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Connector and synchronizer using bitcoind for bitcoin relay", | ||
@@ -28,3 +28,3 @@ "main": "./dist/index.js", | ||
"bn.js": "^5.2.1", | ||
"crosslightning-base": "^4.2.0" | ||
"crosslightning-base": "^4.4.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
@@ -22,3 +22,4 @@ | ||
btcRelayTipBlockHash: string, | ||
latestBlockHeader: BitcoindBlock | ||
latestBlockHeader: BitcoindBlock, | ||
startForkId: number | ||
}> { | ||
@@ -40,2 +41,4 @@ | ||
let startForkId = null; | ||
const {resultStoredHeader, resultBitcoinHeader} = await this.btcRelay.retrieveLatestKnownBlockLog(); | ||
@@ -79,2 +82,3 @@ cacheData.lastStoredHeader = resultStoredHeader; | ||
} | ||
if(cacheData.forkId!==-1 && cacheData.forkId!==0) startForkId = cacheData.forkId; | ||
txsList.push(cacheData.tx); | ||
@@ -125,3 +129,4 @@ for(let storedHeader of cacheData.computedCommitedHeaders) { | ||
latestBlockHeader: spvTipBlockHeader | ||
latestBlockHeader: spvTipBlockHeader, | ||
startForkId | ||
}; | ||
@@ -128,0 +133,0 @@ |
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
50963
1002
Updatedcrosslightning-base@^4.4.0