What is Nostr?
jungly
npub1x0y…9t7k
2025-02-25 18:35:39

jungly on Nostr: I needed to call getblocktemplate in proposal mode from Rust. The reason is we need ...

I needed to call getblocktemplate in proposal mode from Rust. The reason is we need to validate blocks that other miners on p2pool are working on.

This ended up talking me longer I had planned. Not a suprise in software development :)

The bitcoin JSON rpc library only handles the template mode, thought I'll submit a patch, but then realised Poelstra has a corepc-types library to help build your own json rpc client.

All that seemed too much hassle in the end.

So now I just invoke the endpoint using jasonrpsee. I ended up keeping things slim and just did the minimal work required to meet my requirement.

On to the next task.

https://github.com/users/pool2win/projects/15

#p2pool
Author Public Key
npub1x0ywjcwk9zjffndn0wt485xx68h8vykdqg9yztya7lec5an0g4lqg09t7k