forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: bitcoin#23006, #23212, #23500, #23521, #23686, #23927, #24367, #26358 #7036
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
082e406
Merge bitcoin/bitcoin#23500: doc: fix typos
4736353
Merge bitcoin/bitcoin#23686: test: fix `interface_bitcoin_cli.py --de…
e143ba2
partial Merge bitcoin/bitcoin#23521: test: refactor: dedup code by ta…
dcbc646
Merge bitcoin/bitcoin#24367: User-facing content and codebase doc fix…
laanwj 33f9b14
Merge bitcoin/bitcoin#26358: doc: Rearrange a few lines in the depend…
ffc9892
Merge bitcoin/bitcoin#23927: rpc: Pruning nodes can not fetch blocks …
achow101 53b12e5
Merge #23212: lint: enable mypy import checking
knst d01f33e
fix: enable namespaces for mypy while version is too old
knst 19aed94
Merge bitcoin/bitcoin#23006: multiprocess: Add new bitcoin-gui, bitco…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // Copyright (c) 2021 The Bitcoin Core developers | ||
| // Distributed under the MIT software license, see the accompanying | ||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
|
||
| #include <interfaces/chain.h> | ||
| #include <interfaces/coinjoin.h> | ||
| #include <interfaces/echo.h> | ||
| #include <interfaces/init.h> | ||
| #include <interfaces/ipc.h> | ||
| #include <interfaces/node.h> | ||
| #include <interfaces/wallet.h> | ||
| #include <node/context.h> | ||
| #include <util/system.h> | ||
|
|
||
| #include <memory> | ||
|
|
||
| namespace init { | ||
| namespace { | ||
| const char* EXE_NAME = "dash-gui"; | ||
|
|
||
| class BitcoinGuiInit : public interfaces::Init | ||
| { | ||
| public: | ||
| BitcoinGuiInit(const char* arg0) : m_ipc(interfaces::MakeIpc(EXE_NAME, arg0, *this)) | ||
| { | ||
| m_node.args = &gArgs; | ||
| m_node.init = this; | ||
| } | ||
| std::unique_ptr<interfaces::Node> makeNode() override { return interfaces::MakeNode(m_node); } | ||
| std::unique_ptr<interfaces::Chain> makeChain() override { return interfaces::MakeChain(m_node); } | ||
| std::unique_ptr<interfaces::CoinJoin::Loader> makeCoinJoinLoader() override | ||
| { | ||
| return interfaces::MakeCoinJoinLoader(m_node); | ||
| } | ||
| std::unique_ptr<interfaces::WalletLoader> makeWalletLoader(interfaces::Chain& chain, interfaces::CoinJoin::Loader& coinjoin_loader) override | ||
| { | ||
| return MakeWalletLoader(chain, *Assert(m_node.args), m_node, coinjoin_loader); | ||
| } | ||
| std::unique_ptr<interfaces::Echo> makeEcho() override { return interfaces::MakeEcho(); } | ||
| interfaces::Ipc* ipc() override { return m_ipc.get(); } | ||
| node::NodeContext m_node; | ||
| std::unique_ptr<interfaces::Ipc> m_ipc; | ||
| }; | ||
| } // namespace | ||
| } // namespace init | ||
|
|
||
| namespace interfaces { | ||
| std::unique_ptr<Init> MakeGuiInit(int argc, char* argv[]) | ||
| { | ||
| return std::make_unique<init::BitcoinGuiInit>(argc > 0 ? argv[0] : ""); | ||
| } | ||
| } // namespace interfaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| // Copyright (c) 2021 The Bitcoin Core developers | ||
| // Distributed under the MIT software license, see the accompanying | ||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
|
||
| #include <interfaces/chain.h> | ||
| #include <interfaces/coinjoin.h> | ||
| #include <interfaces/echo.h> | ||
| #include <interfaces/init.h> | ||
| #include <interfaces/node.h> | ||
| #include <interfaces/wallet.h> | ||
| #include <node/context.h> | ||
| #include <util/system.h> | ||
|
|
||
| #include <memory> | ||
|
|
||
| namespace init { | ||
| namespace { | ||
| class BitcoinQtInit : public interfaces::Init | ||
| { | ||
| public: | ||
| BitcoinQtInit() | ||
| { | ||
| m_node.args = &gArgs; | ||
| m_node.init = this; | ||
| } | ||
| std::unique_ptr<interfaces::Node> makeNode() override { return interfaces::MakeNode(m_node); } | ||
| std::unique_ptr<interfaces::Chain> makeChain() override { return interfaces::MakeChain(m_node); } | ||
| std::unique_ptr<interfaces::CoinJoin::Loader> makeCoinJoinLoader() override | ||
| { | ||
| return interfaces::MakeCoinJoinLoader(m_node); | ||
| } | ||
| std::unique_ptr<interfaces::WalletLoader> makeWalletLoader(interfaces::Chain& chain, interfaces::CoinJoin::Loader& coinjoin_loader) override | ||
| { | ||
| return MakeWalletLoader(chain, *Assert(m_node.args), m_node, coinjoin_loader); | ||
| } | ||
| std::unique_ptr<interfaces::Echo> makeEcho() override { return interfaces::MakeEcho(); } | ||
| node::NodeContext m_node; | ||
| }; | ||
| } // namespace | ||
| } // namespace init | ||
|
|
||
| namespace interfaces { | ||
| std::unique_ptr<Init> MakeGuiInit(int argc, char* argv[]) | ||
| { | ||
| return std::make_unique<init::BitcoinQtInit>(); | ||
| } | ||
| } // namespace interfaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // Copyright (c) 2021 The Bitcoin Core developers | ||
| // Distributed under the MIT software license, see the accompanying | ||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
|
||
| #include <interfaces/init.h> | ||
|
|
||
| namespace interfaces { | ||
| std::unique_ptr<Init> MakeWalletInit(int argc, char* argv[], int& exit_status) | ||
| { | ||
| return std::make_unique<Init>(); | ||
| } | ||
| } // namespace interfaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.