| 331 | } |
| 332 | |
| 333 | void RPCNotifyBlockChange(const CBlockIndex* pindex) |
| 334 | { |
| 335 | if(pindex) { |
| 336 | LOCK(cs_blockchange); |
| 337 | latestblock.hash = pindex->GetBlockHash(); |
| 338 | latestblock.height = pindex->nHeight; |
| 339 | } |
| 340 | cond_blockchange.notify_all(); |
| 341 | } |
| 342 | |
| 343 | static RPCHelpMan waitfornewblock() |
| 344 | { |
no test coverage detected