This lets IPC clients fetch information relevant to the next block, without having to generate a template.
Similar to the getmininginfo RPC, but with a minimal set of fields based on known needs for the Stratum v2 Job Declarator Server Role^0, including minTime and time which the RPC doesn't provide. Can easily be expanded later for other use cases.
It echos the tip so clients can check for race conditions, e.g. when they call getInfo() immediately after waitTipChanged().
Based on discussion in https://github.com/stratum-mining/sv2-apps/issues/268. Two alternative solutions to that issue:
- add
min_timeto thegetmininginfoRPC - call
createNewBlock(mempool: false)followed bygetBlockHeader()on the empty block to getnBits, but forminTimeyou needgetblocktemplate(which returns a full block)