Sjors / bitcoin

Bitcoin Core integration/staging tree
https://bitcoin.org/en/download
MIT License
6 stars 10 forks source link

Stratum v2 Template Provider common functionality #49

Open Sjors opened 2 months ago

Sjors commented 2 months ago

Parent PR https://github.com/bitcoin/bitcoin/pull/29432. Moved from https://github.com/bitcoin/bitcoin/pull/30475.

Based on:

  1. Noise encryption https://github.com/bitcoin/bitcoin/pull/29346
  2. Messages and transport layer https://github.com/bitcoin/bitcoin/pull/30315
  3. Sv2Connman #50

And the following interface changes:

This contains all Template Provider functionality that can be used by both https://github.com/bitcoin/bitcoin/pull/29432 and the IPC based sidecar alternative #48.

Sjors commented 1 month ago

Updated to the latest interface changes proposed in https://github.com/bitcoin/bitcoin/pull/30409 and #53.

Sjors commented 1 month ago

Rebased for CMake

Sjors commented 1 month ago

One test still seems brittle:

src/test/sv2_template_provider_tests.cpp(256): fatal error: in "sv2_template_provider_tests/client_tests": critical check tester.GetBlockTemplateCount() == 3 has failed [2 != 3]
Sjors commented 3 weeks ago

Moved TemplateProvider from node to common so that in #48 bitcoin-mine does not depend on bitcoin-node.

Sjors commented 3 days ago

Rebased after https://github.com/bitcoin/bitcoin/pull/30409 and changes to #50.