scripted-diff一覧

scripted-diff: test: Move setup_common to test library

<pre>scripted-diff: test: Move setup_common to test library -BEGIN VERIFY SCRIPT- # Move files for f in $(git ls-files src/test/lib/); do git mv $f src/test/util/; done git mv src/test/setup_common.cpp src/test/util/ git mv src/test/setup_common.h src/test/util/ # Replace Windows paths sed -i -e 's|\\setup_common|\\util\\setup_common|g' $(git grep -l '\\setup_common') sed -i -e 's|src\\test\\lib\\|src\\test\\util\\|g' build_msvc/test_bitcoin/test_bitcoin.vcxproj # Everything else sed -i -e 's|/setup_common|/util/setup_common|g' $(git grep -l 'setup_common') sed -i -e 's|test/lib/|test/util/|g' $(git grep -l 'test/lib/') # Fix include guard sed -i -e 's|BITCOIN_TEST_SETUP_COMMON_H|BITCOIN_TEST_UTIL_SETUP_COMMON_H|g' ./src/test/util/setup_common.h sed -i -e 's|BITCOIN_TEST_LIB_|BITCOIN_TEST_UTIL_|g' $(git grep -l 'BITCOIN_TEST_LIB_') -END VERIFY SCRIPT-</pre>

scripted-diff: Remove g_connman, g_banman globals

<pre>scripted-diff: Remove g_connman, g_banman globals -BEGIN VERIFY SCRIPT- sed -i 's:#include &lt;interfaces/chain.h&gt;:#include &lt;banman.h&gt;\n#include &lt;interfaces/chain.h&gt;\n#include &lt;net.h&gt;\n#include &lt;net_processing.h&gt;:' src/node/context.cpp sed -i 's/namespace interfaces {/class BanMan;\nclass CConnman;\nclass PeerLogicValidation;\n&amp;/' src/node/context.h sed -i 's/std::unique_ptr&lt;interfaces::Chain&gt; chain/std::unique_ptr&lt;CConnman&gt; connman;\n std::unique_ptr&lt;PeerLogicValidation&gt; peer_logic;\n std::unique_ptr&lt;BanMan&gt; banman;\n &amp;/' src/node/context.h sed -i '/std::unique_ptr&lt;[^&gt;]\+&gt; \(g_connman\|g_banman\|peerLogic\);/d' src/banman.h src/net.h src/init.cpp sed -i 's/g_connman/m_context.connman/g' src/interfaces/node.cpp sed -i 's/g_banman/m_context.banman/g' src/interfaces/node.cpp sed -i 's/g_connman/m_node.connman/g' src/interfaces/chain.cpp src/test/setup_common.cpp sed -i 's/g_banman/m_node.banman/g' src/test/setup_common.cpp sed -i 's/g_connman/node.connman/g' src/init.cpp src/node/transaction.cpp sed -i 's/g_banman/node.banman/g' src/init.cpp sed -i 's/peerLogic/node.peer_logic/g' src/init.cpp sed -i 's/g_connman/g_rpc_node-&gt;connman/g' src/rpc/mining.cpp src/rpc/net.cpp src/rpc/rawtransaction.cpp sed -i 's/g_banman/g_rpc_node-&gt;banman/g' src/rpc/net.cpp sed -i 's/std::shared_ptr&lt;CWallet&gt; wallet =/node.context()-&gt;connman = std::move(test.m_node.connman);\n &amp;/' src/qt/test/wallettests.cpp -END VERIFY SCRIPT-</pre>

スポンサーリンク

トップへ戻る