@@ -13,11 +13,6 @@ const FUTURE_SEGWIT_MIN_SIZE = 2;
13
13
const FUTURE_SEGWIT_MAX_VERSION = 16 ;
14
14
const FUTURE_SEGWIT_MIN_VERSION = 1 ;
15
15
const 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.' ;
21
16
function _toFutureSegwitAddress ( output , network ) {
22
17
const data = output . slice ( 2 ) ;
23
18
if (
@@ -33,7 +28,6 @@ function _toFutureSegwitAddress(output, network) {
33
28
throw new TypeError ( 'Invalid version for segwit address' ) ;
34
29
if ( output [ 1 ] !== data . length )
35
30
throw new TypeError ( 'Invalid script for segwit address' ) ;
36
- console . warn ( FUTURE_SEGWIT_VERSION_WARNING ) ;
37
31
if ( ! network . bech32 ) {
38
32
throw new TypeError ( "Network doesn't support native segwit" ) ;
39
33
}
@@ -141,7 +135,6 @@ function toOutputScript(address, network) {
141
135
decodeBech32 . data . length >= FUTURE_SEGWIT_MIN_SIZE &&
142
136
decodeBech32 . data . length <= FUTURE_SEGWIT_MAX_SIZE
143
137
) {
144
- console . warn ( FUTURE_SEGWIT_VERSION_WARNING ) ;
145
138
return bscript . compile ( [
146
139
decodeBech32 . version + FUTURE_SEGWIT_VERSION_DIFF ,
147
140
decodeBech32 . data ,
0 commit comments