release_mining_work_unit
release_mining_work_unit req_id Idempotently release a broker-issued work unit. Removes the stored block from the broker tracker so it stops counting against the 50-entry cap. Returning released=false for an unknown or already-removed req_id is a successful no-op cleanup signal, not an error. Arguments: 1. req_id (numeric, required) Work-unit identifier returned by create_mining_work_unit. Result: { (json object) "req_id" : n, (numeric) req_id that was targeted "released" : true|false (boolean) true if an entry existed and was erased; false on idempotent no-op } Examples: > bitcoin-cli release_mining_work_unit 42 > curl --user myusername --data-binary '{"jsonrpc":"2.0","id":"curltest","method":"release_mining_work_unit","params":[42]}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
release_mining_work_unit(req_id: number) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"release_mining_work_unit","params":[0]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| req_id | number | yes | Work-unit identifier returned by create_mining_work_unit. |
Result
Type: any
{ (json object) "req_id" : n, (numeric) req_id that was targeted "released" : true|false (boolean) true if an entry existed and was erased; false on idempotent no-op }
Source: services/core-node/bcore/src/rpc/mining.cpp:2025
C++ symbol: release_mining_work_unit