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.
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
miningpermission 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.