lbryio / lbcd

An alternative full node implementation of LBRY's blockchain written in Go (golang)
https://lbry.com/
ISC License
38 stars 25 forks source link

lbcdblocknotify: support multiple stratum server #100

Open peterpan0708 opened 1 year ago

peterpan0708 commented 1 year ago

support notify to multiple stratum servers

roylee17 commented 1 year ago

LGTM.

Ideally, we'd like to fan out with multiple stratum connections(or clients), not multiple bridges. But the current codebase is not friendly to extend it that way.

So I think we can have this working feature merged now and update it in future iterations. A minor preference is to update the stratum flag to a list style as shown in those inline comments.

This has been requested by multiple pools. So, thanks a lot for the contribution :-)