#30595 (kernel: Introduce initial C header API by TheCharlatan)
#29415 (Broadcast own transactions only via short-lived Tor or I2P connections by vasild)
#28792 (Embed default ASMap as binary dump header file by fjahr)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Sjors
commented at 4:03 pm on June 20, 2024:
member
Would it make sense to add a libbitcoin_net library? Either at the same level as libbitcoin_common or on top of it. I could see how other node implementations could benefit from that, but it’s also a way to limit libbitcoin_common in size. Afaik only libbitcoin_node needs networking (and zmq?), and a future libbitcoin_sv2, and maybe libbitcoin_rpc.
Sjors force-pushed
on Jun 20, 2024
DrahtBot added the label
CI failed
on Jun 20, 2024
DrahtBot
commented at 4:05 pm on June 20, 2024:
contributor
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the
documentation.
Possibly this is due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
Leave a comment here, if you need help tracking down a confusing failure.
I also haven’t put much thought into Sv2NetMsg ever since I took over #27854, so perhaps this design can be improved as well.
Sjors force-pushed
on Jun 21, 2024
Sjors force-pushed
on Jun 21, 2024
sipa
commented at 1:34 pm on June 21, 2024:
member
I only had a very brief look, but my guess would be that it would be easier if Sv2NetMsg did not contain an Sv2NetHeader, and just stored type and message. The Sv2 Transport would then construct the header at submitting or sending time instead. This means Sv2NetMsg would be more of a dumb container for what higher-level code cares about, while the protocol details would be more abstracted away in the Transport.
DrahtBot removed the label
CI failed
on Jun 21, 2024
Sjors force-pushed
on Jun 21, 2024
Sjors
commented at 3:44 pm on June 21, 2024:
member
@sipa done and managed to clean up sv2_messages.h a bit in the process.
in
src/common/sv2_messages.h:14
in
e108385a6eoutdated
639be6df22800d2e2a170c1af74d51951597834c: this namespace is outdated, since this isn’t part of the node anymore.
Sjors force-pushed
on Jun 21, 2024
in
src/test/sv2_transport_tests.cpp:248
in
2f673b5959outdated
242+
243+ // Payload
244+ Span<const std::byte> payload_plain = MakeByteSpan(msg.data());
245+ // TODO: truncate very long messages, about 100 bytes at the start and end
246+ // is probably enough for most debugging.
247+ LogPrintLevel(BCLog::SV2, BCLog::Level::Trace, "Payload: %s\n", HexStr(payload_plain));
DrahtBot
commented at 6:14 pm on June 21, 2024:
contributor
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the
documentation.
Possibly this is due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
Leave a comment here, if you need help tracking down a confusing failure.
DrahtBot added the label
CI failed
on Jun 21, 2024
Sjors force-pushed
on Jun 24, 2024
DrahtBot removed the label
CI failed
on Jun 24, 2024
Sjors force-pushed
on Jun 25, 2024
Sjors force-pushed
on Jun 25, 2024
Sjors force-pushed
on Jun 28, 2024
Sjors force-pushed
on Jun 28, 2024
Sjors
commented at 3:14 pm on June 28, 2024:
member
I dropped the refactoring commits e18887d3c45d4c0b2d414392ec33dbc36c0d8df7, cf67a72aea67b8ecf2c24200f69c68d1e7f4de4b and 912b800581ba6c21b0ed43832c6307f98e7a3af1 which move Transport and its prerequisites to libbitcoin_common. See https://github.com/Sjors/bitcoin/pull/47 for a more ambitious attempt to introduce a whole new libbitcoin_net, but that became real big and distracting real fast :-)
Sjors force-pushed
on Jul 1, 2024
Sjors force-pushed
on Jul 2, 2024
DrahtBot added the label
CI failed
on Jul 7, 2024
DrahtBot
commented at 5:04 am on July 7, 2024:
contributor
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the
documentation.
Possibly this is due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
Leave a comment here, if you need help tracking down a confusing failure.
hebasto removed the label
Needs CMake port
on Aug 29, 2024
Sjors force-pushed
on Aug 29, 2024
DrahtBot added the label
Needs rebase
on Sep 3, 2024
Sjors force-pushed
on Sep 5, 2024
DrahtBot removed the label
Needs rebase
on Sep 5, 2024
Sjors force-pushed
on Sep 10, 2024
DrahtBot added the label
CI failed
on Sep 11, 2024
Sjors force-pushed
on Sep 13, 2024
DrahtBot removed the label
CI failed
on Sep 13, 2024
Sjors force-pushed
on Sep 19, 2024
Sjors force-pushed
on Sep 19, 2024
Sjors force-pushed
on Sep 20, 2024
Sjors
commented at 9:13 am on September 20, 2024:
member
I added a commit (again) that moves CNetMessage, CSerializedNetMsg and Transport to common/transport.h. To keep the diff small it doesn’t move the implementation; that could be done in a separate PR. This avoids a circular dependency between bitcoin-node and bitcoin-sv2.
Sjors force-pushed
on Sep 20, 2024
DrahtBot added the label
CI failed
on Sep 20, 2024
DrahtBot
commented at 9:25 am on September 20, 2024:
contributor
Make sure to run all tests locally, according to the documentation.
The failure may happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the
affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
Sjors
commented at 3:56 pm on September 20, 2024:
member
Each of these CI failures seem spurious, some sort of timeout after many hours. However there’s real failures in the followup PR. Going to rebase this to avoid confusion.
Sjors force-pushed
on Sep 20, 2024
DrahtBot removed the label
CI failed
on Sep 20, 2024
DrahtBot added the label
CI failed
on Sep 26, 2024
DrahtBot removed the label
CI failed
on Sep 30, 2024
DrahtBot added the label
Needs rebase
on Sep 30, 2024
Add sv2 log category for Stratum v2b4a84abda9
build: libbitcoin_sv2 scaffoldd08a2ebfd0
ci: always build WITH_SV2=ON5f36962cfc
Add sv2 noise protocol
Co-Authored-By: Christopher Coverdale <chris.coverdale24@gmail.com>
b588ff85ae
Add sv2 message CoinbaseOutputDataSize
This commit adds the simplest stratum v2 message. The remaining messages are introduced in later commits.
Co-Authored-By: Christopher Coverdale <chris.coverdale24@gmail.com>
1c8d46e167
Move CNetMessage and Transport headers to common
This avoids a circular dependency between bitcoin-sv2 and bitcoin-node.
8352f32985
Convert between Sv2NetMsg and CSerializedNetMsg
This allows us to subclass Transport.
a8cbde120a
Introduce Sv2Transport
Implemented starting from a copy of V2Transport and the V2TransportTester,
modifying it to fit Stratum v2 and Noise Protocol requirements.
Co-Authored-By: Christopher Coverdale <chris.coverdale24@gmail.com>
Co-Authored-By: Fi3
62b255c99f
Sjors force-pushed
on Oct 4, 2024
DrahtBot removed the label
Needs rebase
on Oct 4, 2024
DrahtBot added the label
Needs rebase
on Oct 8, 2024
DrahtBot
commented at 3:35 pm on October 8, 2024:
contributor
🐙 This pull request conflicts with the target branch and needs rebase.
Sjors
commented at 8:57 am on October 16, 2024:
member
I moved this to https://github.com/Sjors/bitcoin/pull/67 so we can focus on building an interface for external applications to use, and getting multiprocess in a release.
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me