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

Stratum v2 connman #50

Open
wants to merge 32 commits into
base: sv2-transport
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4b58d55
test: move the implementation of StaticContentsSock to .cpp
vasild Dec 6, 2022
f186414
test: put the generic parts from StaticContentsSock into a separate c…
vasild Sep 6, 2024
b448b01
test: add a mocked Sock that allows inspecting what has been Send() t…
vasild Dec 6, 2022
b69d199
net: reduce CAddress usage to CService or CNetAddr
vasild Aug 23, 2024
fd81820
net: separate the listening socket from the permissions
vasild Jan 14, 2025
e5d36ee
net: split CConnman::BindListenPort() off CConnman
vasild Aug 23, 2024
b717550
style: modernize the style of SockMan::BindListenPort()
vasild Sep 17, 2024
0241b04
net: split CConnman::AcceptConnection() off CConnman
vasild Aug 26, 2024
8658f83
style: modernize the style of SockMan::AcceptConnection()
vasild Sep 17, 2024
1b05e1d
net: move the generation of ids for new nodes from CConnman to SockMan
vasild Aug 27, 2024
14fcef6
net: move CConnman-specific parts away from ThreadI2PAcceptIncoming()
vasild Aug 27, 2024
213ec07
net: move I2P-accept-incoming code from CConnman to SockMan
vasild Aug 27, 2024
21c5e05
net: index nodes in CConnman by id
vasild Sep 20, 2024
dc6393c
net: isolate P2P specifics from GenerateWaitSockets()
vasild Sep 21, 2024
7a4a930
net: isolate P2P specifics from SocketHandlerConnected() and ThreadSo…
vasild Sep 21, 2024
5eae99d
net: isolate all remaining P2P specifics from SocketHandlerConnected()
vasild Sep 22, 2024
d4de6c9
net: split CConnman::ConnectNode()
vasild Sep 23, 2024
0070acd
net: tweak EventNewConnectionAccepted()
vasild Sep 24, 2024
754fe4a
net: move sockets from CNode to SockMan
vasild Sep 23, 2024
bcf1254
net: move-only: improve encapsulation of SockMan
vasild Sep 23, 2024
731e063
Add sv2 log category for Stratum v2
Sjors Nov 30, 2023
d53193d
build: libbitcoin_sv2 scaffold
Sjors Sep 13, 2024
5f40f59
Add sv2 noise protocol
Sjors Dec 19, 2024
863448b
Add sv2 message CoinbaseOutputConstraints
Sjors Sep 19, 2024
ed34120
Move CNetMessage and Transport headers to common
Sjors Sep 20, 2024
b6ea21d
Convert between Sv2NetMsg and CSerializedNetMsg
Sjors Jun 21, 2024
e8737e0
Introduce Sv2Transport
Sjors Sep 20, 2024
928b5f8
Merge remote-tracking branch 'vasild/sockman' into 2024/06/sv2_connec…
Sjors Jan 24, 2025
dbb4d75
Merge remote-tracking branch 'vasild/DynSock' into 2024/06/sv2_connec…
Sjors Jan 24, 2025
a0deeb1
Add sv2 SETUP_CONNECTION messages
Sjors Jul 15, 2024
9ec4095
Add strings for Sv2MsgType
Sjors Jul 1, 2024
7fb1a19
Add Sv2Connman
Sjors Nov 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ if(WITH_MULTIPROCESS)
)
endif()

option(WITH_SV2 "Enable Stratum v2 functionality." ON)

cmake_dependent_option(BUILD_GUI_TESTS "Build test_bitcoin-qt executable." ON "BUILD_GUI;BUILD_TESTS" OFF)
if(BUILD_GUI)
set(qt_components Core Gui Widgets LinguistTools)
Expand Down Expand Up @@ -633,6 +635,7 @@ message(" ZeroMQ .............................. ${WITH_ZMQ}")
message(" USDT tracing ........................ ${WITH_USDT}")
message(" QR code (GUI) ....................... ${WITH_QRENCODE}")
message(" DBus (GUI, Linux only) .............. ${WITH_DBUS}")
message(" Stratum v2 .......................... ${WITH_SV2}")
message("Tests:")
message(" test_bitcoin ........................ ${BUILD_TESTS}")
message(" test_bitcoin-qt ..................... ${BUILD_GUI_TESTS}")
Expand Down
1 change: 1 addition & 0 deletions doc/design/libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| *libbitcoin_wallet* | Wallet functionality used by *bitcoind* and *bitcoin-wallet* executables. |
| *libbitcoin_wallet_tool* | Lower-level wallet functionality used by *bitcoin-wallet* executable. |
| *libbitcoin_zmq* | [ZeroMQ](../zmq.md) functionality used by *bitcoind* and *bitcoin-qt* executables. |
| *libbitcoin_sv2* | Stratum v2 functionality (usage TBD) |

## Conventions

Expand Down
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ add_subdirectory(util)
if(WITH_MULTIPROCESS)
add_subdirectory(ipc)
endif()
if(WITH_SV2)
add_subdirectory(sv2)
endif()

#=============================
# secp256k1 subtree
Expand Down Expand Up @@ -124,13 +127,15 @@ add_library(bitcoin_common STATIC EXCLUDE_FROM_ALL
common/run_command.cpp
common/settings.cpp
common/signmessage.cpp
common/sockman.cpp
common/system.cpp
common/url.cpp
compressor.cpp
core_read.cpp
core_write.cpp
deploymentinfo.cpp
external_signer.cpp
i2p.cpp
init/common.cpp
kernel/chainparams.cpp
key.cpp
Expand Down Expand Up @@ -209,7 +214,6 @@ add_library(bitcoin_node STATIC EXCLUDE_FROM_ALL
headerssync.cpp
httprpc.cpp
httpserver.cpp
i2p.cpp
index/base.cpp
index/blockfilterindex.cpp
index/coinstatsindex.cpp
Expand Down
Loading
Loading