-
Notifications
You must be signed in to change notification settings - Fork 205
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
[v11.0.0] testnet4 #2340
base: develop
Are you sure you want to change the base?
[v11.0.0] testnet4 #2340
Conversation
@@ -713,7 +713,7 @@ | |||
|
|||
def price(numerator, denominator): | |||
"""Return price as Fraction or Decimal.""" | |||
if util.CURRENT_BLOCK_INDEX >= 294500 or config.TESTNET or config.REGTEST: # Protocol change. | |||
if util.after_block_or_test_network(util.CURRENT_BLOCK_INDEX, 294500): # Protocol change. |
Check warning
Code scanning / pylint
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it. Warning
and block_index <= 310500 | ||
and not config.TESTNET | ||
or config.REGTEST | ||
block_index >= 292000 and block_index <= 310500 and not util.is_test_network() |
Check warning
Code scanning / pylint
Simplify chained comparison between the operands. Warning
testnet4