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

rpc: Remove the need to include rpc/blockchain.cpp in order to put GetDifficulty under test #13288

Merged
merged 1 commit into from Jun 5, 2018

Conversation

@Empact
Copy link
Member

@Empact Empact commented May 20, 2018

By dropping the chain argument to GetDifficulty. GetDifficulty was called in two ways:

  • with a guaranteed non-null blockindex
  • with no argument

Change the latter case to be provided chainActive.Tip() explicitly.

Introduced in: #11748

@Empact
Copy link
Member Author

@Empact Empact commented May 20, 2018

This conflicts with #13230. Will rebase when that goes in.

@Empact Empact changed the title Remove the need to include "rpc/blockchain.cpp' in order to put GetDifficulty under test Remove the need to include rpc/blockchain.cpp in order to put GetDifficulty under test May 20, 2018
@Empact Empact changed the title Remove the need to include rpc/blockchain.cpp in order to put GetDifficulty under test refactoring: Remove the need to include rpc/blockchain.cpp in order to put GetDifficulty under test May 20, 2018
@Empact
Copy link
Member Author

@Empact Empact commented May 20, 2018

/cc #11748

This removes the need to include rpc/blockchain.cpp in order to put
GetDifficulty under test. GetDifficulty was called in two ways:
* with a guaranteed non-null blockindex
* with no argument

Change the latter case to be provided chainActive.Tip() explicitly.
@Empact Empact force-pushed the get-difficulty branch from db98b66 to ebec731 May 21, 2018
@Empact
Copy link
Member Author

@Empact Empact commented May 21, 2018

Dropped the now-unused chain.h include as well.

@practicalswift
Copy link
Contributor

@practicalswift practicalswift commented May 21, 2018

Concept ACK

What about adding this to lint-includes.sh?

diff --git a/contrib/devtools/lint-includes.sh b/contrib/devtools/lint-includes.sh
index 0f9fec4..97b037f 100755
--- a/contrib/devtools/lint-includes.sh
+++ b/contrib/devtools/lint-includes.sh
@@ -40,4 +40,12 @@ if [[ ${QUOTE_SYNTAX_INCLUDES} != "" ]]; then
     EXIT_CODE=1
 fi

+INCLUDED_CPP_FILES=$(git grep -E "^#include <[^>]*\.cpp>" -- "**/*.cpp" "**/*.h")
+if [[ ${INCLUDED_CPP_FILES} != "" ]]; then
+    echo "The following files #include .cpp files:"
+    echo "${INCLUDED_CPP_FILES}"
+    echo
+    EXIT_CODE=1
+fi
+
 exit ${EXIT_CODE}

@Empact
Copy link
Member Author

@Empact Empact commented May 21, 2018

@practicalswift I'm in favor - we'd need to merge this and #13291 to get something like that to pass, so how about as a follow-up?

Copy link
Member

@MarcoFalke MarcoFalke left a comment

utACK ebec731

@@ -352,7 +342,7 @@ static UniValue getdifficulty(const JSONRPCRequest& request)
);

LOCK(cs_main);
return GetDifficulty();
return GetDifficulty(chainActive.Tip());
Copy link
Member

@MarcoFalke MarcoFalke May 21, 2018

style nit: Personally I prefer ::chainActive for globals.

Copy link
Member Author

@Empact Empact May 22, 2018

I like this too but I'm going to leave this PR be. I have a follow-up I think will accommodate it better.

Copy link
Member

@kallewoof kallewoof left a comment

utACK ebec731

@practicalswift
Copy link
Contributor

@practicalswift practicalswift commented May 24, 2018

utACK ebec731

@MarcoFalke MarcoFalke changed the title refactoring: Remove the need to include rpc/blockchain.cpp in order to put GetDifficulty under test rpc: Remove the need to include rpc/blockchain.cpp in order to put GetDifficulty under test May 24, 2018
@laanwj
Copy link
Member

@laanwj laanwj commented Jun 5, 2018

utACK ebec731

@laanwj laanwj merged commit ebec731 into bitcoin:master Jun 5, 2018
1 check passed
laanwj added a commit that referenced this issue Jun 5, 2018
…rder to put `GetDifficulty` under test

ebec731 Drop the chain argument to GetDifficulty (Ben Woosley)

Pull request description:

  By dropping the chain argument to `GetDifficulty`. `GetDifficulty` was called in two ways:
  * with a guaranteed non-null blockindex
  * with no argument

  Change the latter case to be provided `chainActive.Tip()` explicitly.

  Introduced in: #11748

Tree-SHA512: f2c97014be185f3e3de92db15848548650e4a67fab20a41bcfa851c5c63c245915cbe9380f84d9da2081e8756d31a41de417db1d35cfecf41ddb4f25070eb525
@Empact Empact deleted the get-difficulty branch Jun 6, 2018
fanquake added a commit to fanquake/bitcoin that referenced this issue Sep 3, 2018
laanwj added a commit that referenced this issue Sep 4, 2018
68bfc0b doc: correct GetDifficulty doc after #13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
jfhk added a commit to jfhk/bitcoin that referenced this issue Nov 14, 2018
HashUnlimited pushed a commit to HashUnlimited/chaincoin that referenced this issue Nov 26, 2018
kallewoof pushed a commit to kallewoof/bitcoin that referenced this issue Oct 4, 2019
634e395 MERGE FIX: Prevent mainnet unit tests from thinking they have signed blocks after custom tests (Gregory Sanders)
c42c823 MERGE FIX: Pegin witness test cleanup (Gregory Sanders)
6c1c652 MERGE FIX: move pegin witness test to beginning to maybe avoid dirtying other tests (Gregory Sanders)
a36ee6c MERGE FIX: Augment IsValidPeginWitness with err string return (Gregory Sanders)
9d9ee3d MERGE FIX: Adapt bitcoin_functional sync to regtest2 (Gregory Sanders)
7c97d6a MERGE FIX: sync up bitcoin_functional (Gregory Sanders)
9494052 MERGE FIX: enable parent chain in fedpeg-based unit tests (Gregory Sanders)
c73e564 MERGE FIX: instantiate consensus.has_parent_chain for all chains (Gregory Sanders)
4f4fe8f MERGE FIX: ConnectTip: ub fix for bench (Gregory Sanders)
80857b3 MERGE FIX: TEST: fixup bitcoin functional (Gregory Sanders)
e0a8aba MERGE FIX: Properly parse sendtomainchain args from -cli (Gregory Sanders)
4202671 MERGE FIX: spelling linter fixes (Gregory Sanders)
0179972 MERGE FIX: fixup travis bitcoin_functional run (Gregory Sanders)
90f7d18 MERGE-FIX: functional tests (Gregory Sanders)
51584e7 MERGE-FIX: various compilation fixes (Gregory Sanders)
d641c29 travis: Run feature_dbcrash functional tests in cron job (Chun Kuan Lee)
c0d947d tests: Reorder tests and move most of extended tests up to normal tests (Chun Kuan Lee)
cccc362 build: Remove libssl from LDADD unless gui (MarcoFalke)
8e1c13e doc: Document -checklevel levels (Wladimir J. van der Laan)
c1dde3a No longer shutdown after encrypting the wallet (Andrew Chow)
d7637c5 After encrypting the wallet, reload the database environment (Andrew Chow)
5d296ac Add function to close all Db's and reload the databae environment (Andrew Chow)
a769461 Move BerkeleyEnvironment deletion from internal method to callsite (Andrew Chow)
9dcb676 [qa] Use correct python index slices in example test (Suhas Daftuar)
fa8433e qa: Remove unneded import_deterministic_coinbase_privkeys overwrite, add comments (MarcoFalke)
e413c2d qa: Fix codespell error and have lint-spelling error instead of warn (MarcoFalke)
14b29a7 Fix reference to lint-locale-dependence.sh (Hennadii Stepanov)
e221368 utils: Convert fs error messages from multibyte to utf-8 (Chun Kuan Lee)
e4ef4b4 [build] remove #ifdef ENABLE_WALLET from interfaces/node (John Newbery)
fa6ab8a rpc: Return more specific reject reason for submitblock (MarcoFalke)
b16ab9a Report progress in ReplayBlocks while rolling forward (João Barbosa)
b6a2533 Remove redundant BIP174 test from rpc_psbt.json (araspitzu)
fac9539 qa: Run all tests even if wallet is not compiled (MarcoFalke)
faa669c qa: Premine to deterministic address with -disablewallet (MarcoFalke)
d38bf91 Call unicode API on Windows (Chun Kuan Lee)
d0b1cee doc: `-help-debug` implies `-help` (Wladimir J. van der Laan)
9a565a8 Pass export privkey DER compression flag correctly (liuyujun)
fae3fbd logging: Replace LogPrint macros with regular functions (MarcoFalke)
e0664f7 build: Move interfaces/* to libbitcoin_server (Wladimir J. van der Laan)
23db954 utils: run commands using utf-8 string on Windows (Chun Kuan Lee)
7d038dc [build] remove ENABLE_WALLET ifdef from httprpc.cpp (John Newbery)
3076556 [build] Move dummy wallet into its own .cpp file. (John Newbery)
bb6ca65 gui: get special folder in unicode (Chun Kuan Lee)
1c5d225 Drop boost::scoped_array (Chun Kuan Lee)
e7a7245 Scripts and tools: increased timeout downloading (Emanuele Cisbani)
a679109 Speed up knapsack_solver_test by not recreating wallet 100 times. (lucash.dev@gmail.com)
893628b Drop minor GetSerializeSize template (Ben Woosley)
da74db0 Drop unused GetType() from CSizeComputer (Ben Woosley)
b9babc8 utils: Use _wfopen and _wreopen on Windows (Chun Kuan Lee)
fa7e969 qt: Also log and print messages or questions like bitcoind (MarcoFalke)
dd031e3 noui: Move handlers to header file (MarcoFalke)
fa263bc qa: Fix silent merge conflict in wallet_importmulti (MarcoFalke)
98ea64c Let wallet importmulti RPC accept labels for standard scriptPubKeys (Russell Yanofsky)
faa1a74 tx pool: Use class methods to hide raw map iterator impl details (MarcoFalke)
d9d7957 Preserve a format of RPC command definitions (Kostiantyn Stepaniuk)
9256f7d build: avoid getifaddrs when unavailable (Cory Fields)
fa462b3 wallet: Set encrypted_batch to nullptr after delete. Avoid double free in the case of NDEBUG. (practicalswift)
faea5bf doc: release notes for -enablebip61 default change (MarcoFalke)
fa14b54 p2p: Disable BIP 61 by default (MarcoFalke)
7177e09 depends: Remove unused Qt 4 dependencies (Chun Kuan Lee)
dc287c9 Squashed 'src/univalue/' changes from 51d3ab3..7890db9 (MarcoFalke)
946107a Only log "Using PATH_TO_bitcoin.conf" message on startup if conf file exists. (Alexander Leishman)
bc8aa2b don't translate command line options (Michael Polzer)
fac3e22 qa: Read reject reasons from debug log, not p2p messages (MarcoFalke)
b2f49bd Integration of property based testing into Bitcoin Core (Chris Stewart)
65a449f Explain when reindex-chainstate can be used instead of reindex (Sjors Provoost)
e351a16 Remove reference to deprecated RPC call in build instructions (Michael Goldstein)
a6f16f1 Docs: Add disable-wallet section to OSX build instructions (Michael Goldstein)
f7e9e70 [rpc] Remove deprecated sigrawtransaction rpc method. (John Newbery)
90c8340 [RPC] Remove warning about wallet addresses in createmultisig() (John Newbery)
df905e3 [rpc] Remove deprecated validateaddress usage. (John Newbery)
fab5267 doxygen: Remove misleading checkpoints comment in CMainParams (MarcoFalke)
2b5d6f8 Replace duplcate reference with reference to reference doc (Pieter Wuille)
89709db Adjust TODO link (Pieter Wuille)
9254ffc Add descriptor reference documentation (Pieter Wuille)
ed2332a test: Add test for config file parsing errors (MarcoFalke)
a66c0f7 util: Report parse errors in configuration file (Wladimir J. van der Laan)
f8a81f7 lint: Add spell check linter (codespell) (practicalswift)
ada3562 Fix typos reported by codespell (practicalswift)
e9a78e9 doc: Change documentation for =0 for non-boolean options (Wladimir J. van der Laan)
341f7c7 macOS fix: Check for correct version of flake8 to avoid spurious warnings. The brew installed flake8 version is Python 2 based and does not work. (practicalswift)
908a559 macOS fix: Add excludes for checks added in the newer shellcheck version installed by brew (practicalswift)
ec4d57b macOS fix: Work around empty (sub)expression error when using BSD grep (practicalswift)
b57d7d9 macOS fix: Avoid mapfile due to ancient version of bash shipped with macOS (practicalswift)
e4a79b4 appveyor: Use clcache to speed up build (Chun Kuan Lee)
f34c8c4 Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. (practicalswift)
ee3a494 gui: Favor macOS show / hide action in dock menu (João Barbosa)
e8c4a1e Add new regtest ports in doc following bitcoin#10825 ports reattributions (Antoine Riard)
8ecaee1 Increase signal to noise in appveyor build output by reducing the MSVC warning count from 12 to 4 (12 is assuming the changes in bitcoin#14086 are also implemented). (practicalswift)
5d62dcf lint: Make sure we read the command line inputs using utf-8 decoding in python (Chun Kuan Lee)
c7f7fa4 Trivial: update clang thread-safety docs url (Ben Woosley)
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)
83d5305 Switch nPrevNodeCount to vNodesSize. (Patrick Strateman)
fb97437 added note that control port must be enabled and how to do that in torrc config file (Jordan Baczuk)
8dfc2f3 Test rpc_help.py failed: Check whether ZMQ is enabled or not. (Kvaciral)
190bf62 scripted-diff: Small locking rename (Russell Yanofsky)
9c4dc59 Use LOCK macros for non-recursive locks (Russell Yanofsky)
1382913 Make LOCK, LOCK2, TRY_LOCK work with CWaitableCriticalSection (Russell Yanofsky)
ba1f095 MOVEONLY Move AnnotatedMixin declaration (Russell Yanofsky)
41b88e9 Add unit test for DEBUG_LOCKORDER code (Russell Yanofsky)
62b6f0f Add EXCLUSIVE_LOCKS_REQUIRED to CWallet::ListCoins (Russell Yanofsky)
545e85e Add AssertLockHeld assertions in CWallet::ListCoins (Russell Yanofsky)
ca1a093 Add regression test: Don't assert(...) with side effects (practicalswift)
4c3c9c3 Don't assert(...) with side effects (practicalswift)
b602c9b tests: Add missing locking annotations and locks (practicalswift)
f055995 blockfilter: Omit empty scripts from filter contents. (Jim Posen)
75ea00f Remove unused fsbridge::freopen (practicalswift)
cceedbc Don't close old debug log file handle prematurely when trying to re-open (on SIGHUP) (practicalswift)
fa782a3 qa: Use named args in some tests (MarcoFalke)
b4d3309 scripted-diff: Use named arguments in feature_block (MarcoFalke)
749ba35 scripted-diff: Pass node into p2p_segwit acceptance tests (MarcoFalke)
8550f1f Add README.md to linux release tarballs (Hennadii Stepanov)
c516c3a [contrib] Support ARM and RISC-V symbol check (Chun Kuan Lee)
c9c32e6 [wallet] Kill accounts (John Newbery)
1e29379 Fix potential deadlock (practicalswift)
d58dc9f Add lock annotations (cs_args) (practicalswift)
db5e9d3 Add missing locks (cs_args) (practicalswift)
0e534d4 Fix incorrect Doxygen comments (practicalswift)
fa309dc validation: Log FormatStateMessage on ConnectBlock error in ConnectTip (MarcoFalke)
fa58777 scripted-diff: Remove unused first argument to addUnchecked (MarcoFalke)
fe5c497 tx pool: Use the entry's hash instead of the one passed to addUnchecked (MarcoFalke)
ddd395f Mark CTxMemPoolEntry members that should not be modified const (MarcoFalke)
6af6d9b test: Add tests for RPC help (João Barbosa)
1d9aa00 Explicitly initialize prevector _union (Ben Woosley)
b193d5a Removes the Boost case_conv.hpp dependency. (251)
7a208d9 Implements custom tolower and toupper functions. (251)
e2ba043 Implements ParseNetwork unit test. (251)
1661a47 add unicode compatible file_lock for Windows (Chun Kuan Lee)
1cc5897 tests: Fix accidental trunction from int to bool (practicalswift)
61fe653 fix walletcreatefundedpsbt deriv paths, add test (Gregory Sanders)
fae0400 qa: Add some actual witness in rpc_rawtransaction (MarcoFalke)
917353c Make SignPSBTInput operate on a private SignatureData object (Pieter Wuille)
cad5dd2 Pass HD path data through SignatureData (Pieter Wuille)
03a9958 Implement key origin lookup in CWallet (Pieter Wuille)
3b01efa [MOVEONLY] Move ParseHDKeypath to utilstrencodings (Pieter Wuille)
81e1dd5 Generalize PublicOnlySigningProvider into HidingSigningProvider (Pieter Wuille)
84f1f1b Make SigningProvider expose key origin information (Pieter Wuille)
611ab30 Introduce KeyOriginInfo for fingerprint + path (Pieter Wuille)
16e288a test padding non micro timestamps (John Newbery)
995dd89 [Tests] Make combine_logs.py handle multi-line logs (John Newbery)
4c530e0 travis: add  CXXFLAGS=-Wnopsabi at ARM job (Chun Kuan Lee)
dd777f3 Remove unused variable (practicalswift)
cdf4089 Remove redundant assignments (dead stores) (practicalswift)
1ac3c98 Mark single-argument constructors "explicit" (practicalswift)
bb08423 [doc] Add release notes for 'account' API removal (John Newbery)
1f4b865 [wallet] Re-sort wallet RPC commands (John Newbery)
f0dc850 [wallet] Remove wallet account RPCs (John Newbery)
c410f41 [tests] Remove wallet accounts test (John Newbery)
c55c5f2 fix missing differentiation between UNIT and FUNCTIONAL tests in travis build (Julian Fleischer)
4143269 use export LC_ALL=C.UTF-8 (Julian Fleischer)
728c82d make script exit if a command fails (Julian Fleischer)
506890b move remaining travis build steps into individual files (Julian Fleischer)
272306e number .travis/ script according to build lifecycle and add README to explain (Julian Fleischer)
519e273 move lint stage up to resemble travis build ui (Julian Fleischer)
86d34f0 abort script in END_FOLD on non-zero exit code (Julian Fleischer)
4f2f88c move script sections info individual files and comply with shellcheck (Julian Fleischer)
a9910d8 contrib: Adjust output to current test format (Akio Nakamura)
5778bf9 Report minfeefilter value in getpeerinfo rpc (Anthony Towns)
3842732 test: Add testing of value_ret for SelectCoinsBnB (Ben Woosley)
497e90c Remove default argument to prevector constructor to remove ambiguity (Ben Woosley)
f1640d0 Make IS_TRIVIALLY_CONSTRUCTIBLE consistent on GCC < 5 (Ben Woosley)
fad8afa travis: Run unit tests --with-sanitizers=undefined (MarcoFalke)
0d00fd5 depends: allow CC/CXX to be overridden during configure (Cory Fields)
7d0a8ad Docs: Fix help message typo optiona -> optional (Ben Woosley)
faf4a9b qa: Stop txindex thread before calling destructor (MarcoFalke)
0b16f67 auto generate MSVC project files (Chun Kuan Lee)
254c85b bench: Benchmark GCS filter creation and matching. (Jim Posen)
f33b717 blockfilter: Optimization on compilers with int128 support. (Jim Posen)
97b64d6 blockfilter: Unit test against BIP 158 test vectors. (Jim Posen)
a4afb9c blockfilter: Additional helper methods to compute hash and header. (Jim Posen)
cd09c79 blockfilter: Serialization methods on BlockFilter. (Jim Posen)
c1855f6 blockfilter: Construction of basic block filters. (Jim Posen)
53e7874 blockfilter: Simple test for GCSFilter construction and Match. (Jim Posen)
558c536 blockfilter: Implement GCSFilter Match methods. (Jim Posen)
cf70b55 blockfilter: Implement GCSFilter constructors. (Jim Posen)
c454f0a blockfilter: Declare GCSFilter class for BIP 158 impl. (Jim Posen)
9b622dc streams: Unit tests for BitStreamReader and BitStreamWriter. (Jim Posen)
fe943f9 streams: Implement BitStreamReader/Writer classes. (Jim Posen)
87f2d9e streams: Unit test for VectorReader class. (Jim Posen)
947133d streams: Create VectorReader stream interface for vectors. (Jim Posen)
737670c Use assert when running from multithreaded code as BOOST_CHECK_* are not thread safe (Jesse Cohen)
9e2de6b Move cs_main locking annotations from .cpp to .h (practicalswift)
9e0a514 Add compile time checking for all cs_main runtime locking assertions (practicalswift)
870bd4c Update functional RBF test to check replaceable flag (dexX7)
820d31f Add "bip125-replaceable" flag to mempool RPCs (dexX7)
03a2d68 Tests: add usage note to check-rpc-mappings.py (Mason Simon)
ddddce0 util: Replace boost::signals2 with std::function (MarcoFalke)
fa6c3de p2p: Clarify control flow in ProcessMessage() (MarcoFalke)
984d72e Return the script type from Solver (Ben Woosley)
23f4343 Add CMerkleTx::IsImmatureCoinBase method (Ben Woosley)
fa3e9f7 qa: Add TestNode::assert_debug_log (MarcoFalke)
00f58f8 rpc: Avoid locking cs_main in some wallet RPC (João Barbosa)
fa74d3d qa: Remove unused deserialization code in msg_version (MarcoFalke)
fa5099c p2p: Remove dead code for nVersion=10300 (MarcoFalke)
8563341 Bugfix: NSIS: Exclude Makefile* from docs (Luke Dashjr)
46f8345 contrib: Support github pull request gitian-build (Chun Kuan Lee)
317f2cb test: Check RPC settxfee errors (João Barbosa)
48618da Add checks for settxfee reasonableness (Anthony Towns)
321159e don't report minversion wallet entry as unknown (Gregory Sanders)
19efc01 Add PSBT documentation (Pieter Wuille)
18c49eb http: Add const modifier to HTTPRequest methods (João Barbosa)
3567b24 test: Add lint to prevent SIGNAL/SLOT connect style (João Barbosa)
f78558f qt: Use new Qt5 connect syntax (João Barbosa)

Pull request description:

Tree-SHA512: 6da8dacc63f7ca6f28ed6aa0143cc65383d9ac17fcad26c17b683397701ba170b3987fa0f246ef8408766975d7b80b62c5ff8a20cfcb78ce54d65b8a620e9e91
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 17, 2020
…pp in order to put `GetDifficulty` under test

ebec731 Drop the chain argument to GetDifficulty (Ben Woosley)

Pull request description:

  By dropping the chain argument to `GetDifficulty`. `GetDifficulty` was called in two ways:
  * with a guaranteed non-null blockindex
  * with no argument

  Change the latter case to be provided `chainActive.Tip()` explicitly.

  Introduced in: bitcoin#11748

Tree-SHA512: f2c97014be185f3e3de92db15848548650e4a67fab20a41bcfa851c5c63c245915cbe9380f84d9da2081e8756d31a41de417db1d35cfecf41ddb4f25070eb525
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jul 2, 2020
…pp in order to put `GetDifficulty` under test

ebec731 Drop the chain argument to GetDifficulty (Ben Woosley)

Pull request description:

  By dropping the chain argument to `GetDifficulty`. `GetDifficulty` was called in two ways:
  * with a guaranteed non-null blockindex
  * with no argument

  Change the latter case to be provided `chainActive.Tip()` explicitly.

  Introduced in: bitcoin#11748

Tree-SHA512: f2c97014be185f3e3de92db15848548650e4a67fab20a41bcfa851c5c63c245915cbe9380f84d9da2081e8756d31a41de417db1d35cfecf41ddb4f25070eb525
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 27, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 28, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 29, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 29, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 29, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 29, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jun 29, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this issue Jul 1, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
Munkybooty added a commit to Munkybooty/dash that referenced this issue Jul 1, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
Munkybooty added a commit to Munkybooty/dash that referenced this issue Jul 2, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
Munkybooty added a commit to Munkybooty/dash that referenced this issue Jul 3, 2021
68bfc0b doc: correct GetDifficulty doc after bitcoin#13288 (fanquake)

Pull request description:

  `chain` is no longer passed to GetDifficulty, and we just return `1.0` if no `blockindex`.

Tree-SHA512: 701375d732f343200c4abfaf9039d5c12b10abff97b022e84564f81b26b5ba552f1eb0c0d0fd5370b29b53319eafcf39773a36e1c2dd04ee77e61c18c7b183fa
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants