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

[Trivial][Cleanup] Add IsRegTestNet() function in chainparams #1282

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

random-zebra
Copy link

This removes many explicit checks Params().NetworkID() != CBaseChainParams::REGTEST / Params().NetworkID() == CBaseChainParams::REGTEST making the code more readable.

@random-zebra random-zebra added Cleanup Trivial extremely simple issues labels Jan 16, 2020
@random-zebra random-zebra self-assigned this Jan 16, 2020
@Fuzzbawls Fuzzbawls added this to the 4.1.0 milestone Jan 18, 2020
Fuzzbawls
Fuzzbawls previously approved these changes Jan 19, 2020
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

ACK d4e6203

@random-zebra
Copy link
Author

Rebased on master.

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

ACK c5a8adb

random-zebra added a commit that referenced this pull request Jan 22, 2020
…arams

c5a8adb [Core][Cleanup] Add IsRegTestNet() function in chainparams (random-zebra)

Pull request description:

  This removes many explicit checks `Params().NetworkID() != CBaseChainParams::REGTEST` / `Params().NetworkID() == CBaseChainParams::REGTEST` making the code more readable.

ACKs for top commit:
  Fuzzbawls:
    ACK c5a8adb

Tree-SHA512: ce6373be461c1db87cd48e4046c0c7429a57253a9fbd52d649f65e7ddb0385d0cf87b81f0538b97521f663f8ad79fbcc68f5e2bdbd9ca339ae8599d3d1cc38a6
@random-zebra random-zebra merged commit c5a8adb into PIVX-Project:master Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Trivial extremely simple issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants