New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

btcrelay-bitcoind

Package Overview
Dependencies
Maintainers
1
Versions
33
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 3.0.6 to 3.0.7

0

dist/index.d.ts

@@ -0,0 +0,0 @@ export * from "./rpc/BitcoindBlock";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

6

dist/rpc/BitcoindRpc.js

@@ -17,2 +17,3 @@ "use strict";

const RpcClient = require("bitcoind-rpc");
const BN = require("bn.js");
class BitcoindRpc {

@@ -93,3 +94,4 @@ constructor(protocol, user, pass, host, port) {

retrievedTx.vout.forEach(e => {
e.value = Math.floor(e.value * 100000000);
const bnVal = new BN(e.value).mul(new BN(100000000));
e.value = bnVal.toNumber();
});

@@ -130,3 +132,3 @@ return {

tx.vout.forEach(vout => {
vout.value = Math.floor(vout.value * 100000000);
vout.value = new BN(vout.value).mul(new BN(100000000)).toNumber();
});

@@ -133,0 +135,0 @@ });

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { BtcRelay, BtcStoredHeader, RelaySynchronizer } from "crosslightning-base";

{
"name": "btcrelay-bitcoind",
"version": "3.0.6",
"version": "3.0.7",
"description": "Connector and synchronizer using bitcoind for bitcoin relay",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -0,0 +0,0 @@ export * from "./rpc/BitcoindBlock";

@@ -0,0 +0,0 @@ import {BtcBlock} from "crosslightning-base";

@@ -6,2 +6,3 @@ import {BitcoindBlock, BitcoindBlockType} from "./BitcoindBlock";

import * as RpcClient from "bitcoind-rpc";
import * as BN from "bn.js";

@@ -162,3 +163,4 @@ export type BitcoindVout = {

retrievedTx.vout.forEach(e => {
e.value = Math.floor(e.value*100000000);
const bnVal = new BN(e.value).mul(new BN(100000000));
e.value = bnVal.toNumber();
});

@@ -203,3 +205,3 @@

tx.vout.forEach(vout => {
vout.value = Math.floor(vout.value*100000000);
vout.value = new BN(vout.value).mul(new BN(100000000)).toNumber();
});

@@ -206,0 +208,0 @@ });

@@ -0,0 +0,0 @@ import {createHash} from "crypto";

Sorry, the diff of this file is not supported yet

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