btcrelay-bitcoind
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -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 @@ }); |
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
48217
976