-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce warnings about future segwit version when parsing output scripts #1800
Comments
A few thoughts:
Perhaps we should add a new set of functions for to/fromOutputScript and deprecate the current ones for removal in the next major version bump? |
As a temporary solution, though super hackey, the consuming app could do something like: function wrappedFromOutputScript(script, network) {
const oldWarn = console.warn
console.warn = () => {}
const result = fromOutputScript(script, network)
console.warn = oldWarn
return result
} |
Is there an ETA on this at all? |
Please help review this PR #1742, and the rest will follow 🎵 |
This also happens when parsing some Litecoin transactions. |
I guess we can just do it once. See PR. |
Can this be merged and published, please? |
bitcoinjs-lib/ts_src/address.ts
Line 52 in 93af5af
I'm writing an app that continuously parses lots of transactions (for analysis purposes) This warning is printed every time such output-script is parsed, and it really spams my logs.
Please make it possible to avoid this warning, maybe via an environment variable.
Another reasonable option is to print the warning only after the first time such an output-script is found, and not in following occurrences.
Thanks!
The text was updated successfully, but these errors were encountered: