Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Feb 10, 2023

Use Python3 constructions, and f-strings.

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 10, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK jamesob
Ignored review codo1

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@codo1
Copy link

codo1 commented Feb 11, 2023

tACK
Tested as follows: generated new userpw using an explicit password. Used it on signet through an RPC request (checked I got 'incorrect password attempt' if I changed the userpw a bit).

Copy link
Contributor

@brunoerg brunoerg left a comment

Choose a reason for hiding this comment

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

from CI (locally I got same error when running rpcauth-test):

Traceback (most recent call last):
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-w64-mingw32/src/../test/util/rpcauth-test.py", line 33, in test_generate_password
    base64.urlsafe_b64decode(password)).decode('utf-8')
  File "/usr/lib/python3.10/base64.py", line 133, in urlsafe_b64decode
    return b64decode(s)
  File "/usr/lib/python3.10/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

@sipa sipa force-pushed the 202302_modernize_rpcauth_py branch from af2e232 to 6aa646f Compare February 13, 2023 22:10
@sipa sipa force-pushed the 202302_modernize_rpcauth_py branch from 6aa646f to e4e1790 Compare February 13, 2023 22:11
@jamesob
Copy link
Contributor

jamesob commented Feb 13, 2023

Github ACK e4e1790

@fanquake fanquake merged commit d6ef44c into bitcoin:master Feb 14, 2023
@jonatack
Copy link
Member

tACK Tested as follows: generated new userpw using an explicit password. Used it on signet through an RPC request (checked I got 'incorrect password attempt' if I changed the userpw a bit).

@codo1 If this comment can be helpful, your review is listed as ignored in #27081 (comment) and is not part of the merge commit because your ACK isn't followed by the commit hash. See these links for more information:

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 14, 2023
@codo1
Copy link

codo1 commented Feb 14, 2023

@codo1 If this comment can be helpful

@jonatack It is. Thank you. Part of the docs you link to need to be re-read by me.

@bitcoin bitcoin locked and limited conversation to collaborators Feb 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants