stratum-mining / sv2-workshop

StratumV2 Reference Implementation Workshop
Creative Commons Zero v1.0 Universal
2 stars 6 forks source link

Bump bitcoin sv2-tp to v0.1.9 + update imports #10

Closed rrybarczyk closed 1 month ago

rrybarczyk commented 2 months ago

Addresses #9.

rrybarczyk commented 1 month ago

When running with the Genesis node on the SRI VM with the version tag sv2-tp-0.1.3, everything seems to works nicely (although I am unable to view the mempool.space hosted on the SRI VM because I cannot run docker-compose up in the mempool directory as docker-compose is not installed and I do not have sudo privledges):

Screenshot 2024-09-17 at 11 56 00 AM Screenshot 2024-09-17 at 11 56 43 AM

When using a local Genesis node on sv2-tp-0.1.9, the pool and JDS roles receives the following errors:

Screenshot 2024-09-17 at 12 36 43 PM

I am not sure if this is an issue with my local Genesis node, or if the problem runs deeper. Should we update the Genesis node on the SRI VM to be sv2-tp-0.1.9 and try?

plebhash commented 1 month ago

the root cause is this: https://github.com/stratum-mining/stratum/blob/ab0ddd625706698c47d44b9b4e4f985c39be18db/roles/pool/src/lib/mining_pool/mod.rs#L786

solution is here https://github.com/stratum-mining/sv2-workshop/blob/bf2d39f20fc8545ecfee6489c8f1fefbd04deb0e/materials/signet-genesis-node.sh#L61-L65

rrybarczyk commented 1 month ago

Works now after I properly initialized the local Genesis node with 16 blocks.

Screenshot 2024-09-17 at 1 08 50 PM

Screenshot 2024-09-17 at 1 09 32 PM