diff options
| author | James O'Beirne <[email protected]> | 2019-03-27 11:14:25 -0400 |
|---|---|---|
| committer | James O'Beirne <[email protected]> | 2019-05-03 15:02:54 -0400 |
| commit | 631940aab228ccca64c15e05d5953f40381a0ffc (patch) | |
| tree | 694cfe15bf0a6d9271fc9b6c10fda5a77c935580 /src/test/denialofservice_tests.cpp | |
| parent | refactoring: introduce unused ChainActive() (diff) | |
| download | discoin-631940aab228ccca64c15e05d5953f40381a0ffc.tar.xz discoin-631940aab228ccca64c15e05d5953f40381a0ffc.zip | |
scripted-diff: replace chainActive -> ::ChainActive()
Though at the moment ChainActive() simply references `g_chainstate.m_chain`,
doing this change now clears the way for multiple chainstate usage and allows
us to script the diff.
-BEGIN VERIFY SCRIPT-
git grep -l "chainActive" | grep -E '(h|cpp)$' | xargs sed -i '/chainActive =/b; /extern CChain& chainActive/b; s/\(::\)\{0,1\}chainActive/::ChainActive()/g'
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/denialofservice_tests.cpp')
| -rw-r--r-- | src/test/denialofservice_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index bcb9a7c18..c5d3611df 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -90,8 +90,8 @@ BOOST_AUTO_TEST_CASE(outbound_slow_chain_eviction) // This test requires that we have a chain with non-zero work. { LOCK(cs_main); - BOOST_CHECK(chainActive.Tip() != nullptr); - BOOST_CHECK(chainActive.Tip()->nChainWork > 0); + BOOST_CHECK(::ChainActive().Tip() != nullptr); + BOOST_CHECK(::ChainActive().Tip()->nChainWork > 0); } // Test starts here |