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

Backport Bitcoin's share/rpcauth/rpcauth.py in rpcuser.py #3388

Merged

Conversation

Anish-M-code
Copy link
Contributor

@Anish-M-code Anish-M-code commented Nov 29, 2023

I simply backported changes from Bitcoin to modernize rpcuser.py , no new functionalities were introduced. This Pull request aims to close feature request #3352

@Anish-M-code Anish-M-code changed the title Backport Bitcoin's share/rpcauth/rpcauth.py Backport Bitcoin's share/rpcauth/rpcauth.py in rpcuser.py Nov 29, 2023
@patricklodder patricklodder requested a review from a team November 29, 2023 17:27
@patricklodder patricklodder added this to the 1.14.7 milestone Nov 29, 2023
print("String to be appended to dogecoin.conf")
print("rpcauth="+username+":"+salt+"$"+result)
print("Your password:\n"+password)
print('String to be appended to bitcoin.conf:')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to dogecoin.conf? I think that's the only difference we want between these files. Thanks!

@Anish-M-code
Copy link
Contributor Author

@chromatic I fixed as mentioned in the code review

@patricklodder patricklodder mentioned this pull request Feb 11, 2024
43 tasks
@slightlyskepticalpotat
Copy link
Contributor

After deleting the rpc authentication .cookie and using the script to generate a rpcauth= to add to my dogecoin.conf file, I'm able to use the provided rpc username/password with `dogecoin-cli. Using an incorrect password errors out.

Everything appears to be working, tested on Ubuntu 22.04.
image

Copy link
Member

@patricklodder patricklodder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on arm64 macOS. Could use a squash, otherwise good to go.

@Anish-M-code do you want me to squash it for you?

@Anish-M-code
Copy link
Contributor Author

@patricklodder , i would like if you could squash my pull request. can you please explain me how to squash commits in Github web UI or do you use git commandline to squash git commits.

backport Bitcoin's share/rpcauth/rpcauth.py in rpcuser.py ,
no new functionalities like accepting password from user is
not supported in this backport.
@patricklodder patricklodder force-pushed the 1.14.7_rpcuser_bitcoin_backport branch from ea6b8b3 to 96778cf Compare February 13, 2024 17:09
@patricklodder
Copy link
Member

i would like if you could squash my pull request

Done!

do you use git commandline to squash git commits.

This. But I will have a look at what options we have inside the GitHub web UI once we're done with the release

@patricklodder
Copy link
Member

@chromatic could you let us know if this is an acceptable implementation for your issue?

@slightlyskepticalpotat
Copy link
Contributor

Hey, any updates on this?

@chromatic
Copy link
Member

This one is on my list next up, and I hope to get to it before the weekend.

@chromatic chromatic self-requested a review February 23, 2024 01:55
Copy link
Member

@chromatic chromatic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK; this addresses my concerns. Thank you, @Anish-M-code ! I appreciate this.

@chromatic chromatic merged commit 9182b26 into dogecoin:1.14.7-dev Feb 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants