Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

btcrelay-bitcoind

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btcrelay-bitcoind - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

1

dist/synchronizer/BitcoindRelaySynchronizer.d.ts

@@ -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 @@ });

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc