@@ -13,11 +13,6 @@ const FUTURE_SEGWIT_MIN_SIZE = 2;
1313const FUTURE_SEGWIT_MAX_VERSION = 16 ;
1414const FUTURE_SEGWIT_MIN_VERSION = 1 ;
1515const FUTURE_SEGWIT_VERSION_DIFF = 0x50 ;
16- const FUTURE_SEGWIT_VERSION_WARNING =
17- 'WARNING: Sending to a future segwit version address can lead to loss of funds. ' +
18- 'End users MUST be warned carefully in the GUI and asked if they wish to proceed ' +
19- 'with caution. Wallets should verify the segwit version from the output of fromBech32, ' +
20- 'then decide when it is safe to use which version of segwit.' ;
2116function _toFutureSegwitAddress ( output , network ) {
2217 const data = output . slice ( 2 ) ;
2318 if (
@@ -33,7 +28,6 @@ function _toFutureSegwitAddress(output, network) {
3328 throw new TypeError ( 'Invalid version for segwit address' ) ;
3429 if ( output [ 1 ] !== data . length )
3530 throw new TypeError ( 'Invalid script for segwit address' ) ;
36- console . warn ( FUTURE_SEGWIT_VERSION_WARNING ) ;
3731 if ( ! network . bech32 ) {
3832 throw new TypeError ( "Network doesn't support native segwit" ) ;
3933 }
@@ -141,7 +135,6 @@ function toOutputScript(address, network) {
141135 decodeBech32 . data . length >= FUTURE_SEGWIT_MIN_SIZE &&
142136 decodeBech32 . data . length <= FUTURE_SEGWIT_MAX_SIZE
143137 ) {
144- console . warn ( FUTURE_SEGWIT_VERSION_WARNING ) ;
145138 return bscript . compile ( [
146139 decodeBech32 . version + FUTURE_SEGWIT_VERSION_DIFF ,
147140 decodeBech32 . data ,
0 commit comments