@bitgo-forks/bitcoinjs-lib
Advanced tools
Comparing version 7.1.0-master.8 to 7.1.0-master.9
{ | ||
"name": "@bitgo-forks/bitcoinjs-lib", | ||
"version": "7.1.0-master.8", | ||
"version": "7.1.0-master.9", | ||
"description": "Client-side Bitcoin JavaScript library", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -16,7 +16,2 @@ 'use strict'; | ||
const FUTURE_SEGWIT_VERSION_DIFF = 0x50; | ||
const FUTURE_SEGWIT_VERSION_WARNING = | ||
'WARNING: Sending to a future segwit version address can lead to loss of funds. ' + | ||
'End users MUST be warned carefully in the GUI and asked if they wish to proceed ' + | ||
'with caution. Wallets should verify the segwit version from the output of fromBech32, ' + | ||
'then decide when it is safe to use which version of segwit.'; | ||
function _toFutureSegwitAddress(output, network) { | ||
@@ -37,3 +32,2 @@ const data = output.slice(2); | ||
throw new TypeError('Invalid script for segwit address'); | ||
console.warn(FUTURE_SEGWIT_VERSION_WARNING); | ||
if (!network.bech32) { | ||
@@ -146,3 +140,2 @@ throw new TypeError("Network doesn't support native segwit"); | ||
) { | ||
console.warn(FUTURE_SEGWIT_VERSION_WARNING); | ||
return bscript.compile([ | ||
@@ -149,0 +142,0 @@ decodeBech32.version + FUTURE_SEGWIT_VERSION_DIFF, |
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
224677
6016