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

suggestion: Avoid new uses of lazy_static #5559

Merged
merged 4 commits into from
Nov 7, 2022

Conversation

teor2345
Copy link
Collaborator

@teor2345 teor2345 commented Nov 6, 2022

Motivation

This is a suggestion on PR #5558.

It removes a new use of lazy_static, and adds some missing documentation.

@teor2345 teor2345 added A-dependencies Area: Dependency file updates P-Medium ⚡ C-security Category: Security issues labels Nov 6, 2022
@teor2345 teor2345 self-assigned this Nov 6, 2022
@teor2345 teor2345 requested a review from a team as a code owner November 6, 2022 23:33
@teor2345 teor2345 requested review from oxarbitrage and removed request for a team November 6, 2022 23:33
@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #5559 (2722c19) into issue5452 (4c33503) will increase coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files
@@              Coverage Diff              @@
##           issue5452    #5559      +/-   ##
=============================================
+ Coverage      78.82%   78.87%   +0.05%     
=============================================
  Files            305      305              
  Lines          38126    38126              
=============================================
+ Hits           30051    30073      +22     
+ Misses          8075     8053      -22     

@teor2345
Copy link
Collaborator Author

teor2345 commented Nov 7, 2022

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Nov 7, 2022

update

✅ Branch has been successfully updated

@teor2345
Copy link
Collaborator Author

teor2345 commented Nov 7, 2022

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Nov 7, 2022

update

✅ Branch has been successfully updated

Copy link
Contributor

@oxarbitrage oxarbitrage left a comment

Choose a reason for hiding this comment

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

Thanks, i tried to do the const array as you do here but i was not able to remember how to do it. I didn't thought it was a big deal (we have lazy statics already).

Anyway, thanks for the fix. I also missed those documentations so thank you for adding them too.

@oxarbitrage oxarbitrage merged commit 5590d0c into issue5452 Nov 7, 2022
@oxarbitrage oxarbitrage deleted the issue5452-no-lazy-static branch November 7, 2022 12:17
mergify bot added a commit that referenced this pull request Nov 8, 2022
* add fixed values to getblocktemplate rpc call response

* suggestion: Avoid new uses of lazy_static (#5559)

* Avoid using lazy_static

* Add some missing documentation

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* minor fixes

* move docs to struct

* add fixed values to coinbase tx

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: teor <teor@riseup.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: Dependency file updates C-security Category: Security issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants