Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

SRI Template Provider as a bitcoin p2p proxy #1034

Closed
Sjors opened this issue Jul 5, 2024 · 3 comments
Closed

SRI Template Provider as a bitcoin p2p proxy #1034

Sjors opened this issue Jul 5, 2024 · 3 comments

Comments

@Sjors
Copy link
Collaborator

Sjors commented Jul 5, 2024

I suggested an alternative to the alternative in #1032... bitcoin/bitcoin#29432 (comment)

In this alternative Bitcoin Core would have all the Template Provider functionality, but they would be implemented as p2p messages. The SRI TP would run on the same machine and make a p2p connection with a special mining permission so it can access these new message types. It then translates these p2p messages to native Stratum v2.

Just like #1032 this avoids the need to add Noise encryption and a new networking stack to Bitcoin Core. But the SRI side doesn't have to be very smart, it's more like a proxy.

Some downsides are listed in the comment. The main issue is that the Bitcoin p2p protocol is more difficult to use than RPC.

@GitGab19
Copy link
Collaborator

GitGab19 commented Jul 5, 2024

What would be the real advantage of this solution (against the alternative here) in your opinion? Could a TP be used by multiple clients in this scenario?

@pavlenex
Copy link
Collaborator

pavlenex commented Jul 5, 2024

Guys should we have discussions like this going forward in the https://github.com/stratum-mining/stratum/discussions? IMO issues should be a clearly specified to-do that can be resolved by a PR. Anything that requires input and should ideally go into a discussion.

@GitGab19
Copy link
Collaborator

GitGab19 commented Jul 5, 2024

I agree. I will open a discussion for this soon

@stratum-mining stratum-mining locked and limited conversation to collaborators Jul 5, 2024
@GitGab19 GitGab19 converted this issue into discussion #1036 Jul 5, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants