Skip to content
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

"script_error_messages" needs a fix #6052

Closed
Coding-Enthusiast opened this issue Mar 27, 2020 · 1 comment
Closed

"script_error_messages" needs a fix #6052

Coding-Enthusiast opened this issue Mar 27, 2020 · 1 comment
Labels
topic-network 🕸 related to logic in network.py (etc)

Comments

@Coding-Enthusiast
Copy link

r"Only non-push operators allowed in signatures",

This was a wrong error message in bitcoin core which was fixed in 18412 today.
You may need to add a condition before returning the correct message for backward compatibility.

if serverMsg == "Only non-push operators allowed in signatures" or  == "Only push operators allowed in signatures"
return "Only push operators allowed in signatures"
else
// line 938 to 940 as it was before:
  for substring in script_error_messages:
      if substring in server_msg:
          return substring
@SomberNight
Copy link
Member

Thanks.

You may need to add a condition before returning the correct message for backward compatibility.

You are right that this would be the nice approach but it also makes the code a bit more complicated.

I don't think I've ever seen this error message except when I was writing new code to manually construct transactions. It does not happen for production releases. And if it happens for a dev, they can just look at the log that contains the original message.

So, I think it's fine to only handle the msg returned by updated bitcoind.

@SomberNight SomberNight added the topic-network 🕸 related to logic in network.py (etc) label Mar 31, 2020
sidhujag pushed a commit to syscoin/electrumsys that referenced this issue Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-network 🕸 related to logic in network.py (etc)
Projects
None yet
Development

No branches or pull requests

2 participants