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