(req)
| 4984 | # blockhash. This error is special-cased not to count as the |
| 4985 | # backend failing since it is used to poll for the next block. |
| 4986 | def mock_getblockhash(req): |
| 4987 | # Allow old blocks, for restart. |
| 4988 | if int(req['params'][0]) <= height: |
| 4989 | return None |
| 4990 | return { |
| 4991 | "id": req['id'], |
| 4992 | "error": { |
| 4993 | "code": -8, |
| 4994 | "message": "Block height out of range" |
| 4995 | } |
| 4996 | } |
| 4997 | |
| 4998 | send.daemon.rpcproxy.mock_rpc('getblockhash', mock_getblockhash) |
| 4999 | bitcoind.generate_block(100) |
nothing calls this directly
no outgoing calls
no test coverage detected