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 3.0.8 to 3.0.9

6

dist/rpc/BitcoindRpc.js

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

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

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

retrievedTx.vout.forEach(e => {
const bnVal = new BN(e.value).mul(new BN(100000000));
e.value = bnVal.toNumber();
e.value = parseInt(e.value.toFixed(8).replace(new RegExp(".", 'g'), ""));
});

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

tx.vout.forEach(vout => {
vout.value = new BN(vout.value).mul(new BN(100000000)).toNumber();
vout.value = parseInt(vout.value.toFixed(8).replace(new RegExp(".", 'g'), ""));
});

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

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

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

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

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

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

retrievedTx.vout.forEach(e => {
const bnVal = new BN(e.value).mul(new BN(100000000));
e.value = bnVal.toNumber();
e.value = parseInt(e.value.toFixed(8).replace(new RegExp(".", 'g'), ""));
});

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

tx.vout.forEach(vout => {
vout.value = new BN(vout.value).mul(new BN(100000000)).toNumber();
vout.value = parseInt(vout.value.toFixed(8).replace(new RegExp(".", 'g'), ""));
});

@@ -208,0 +206,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