Language

Choose a language

/build/rpc / mining

validationmockclear

mock-only
  • workflowoperate-a-verifier·step 6 of 6Workflow: operate-a-verifier · step 6 of 6

validationmockclear ( "id" "type" ) Clear mock responses (all, or for a specific id optionally type) Arguments: 1. id (string, optional) Block hash or model id (hex) 2. type (string, optional) Type: quick|full|model Result: true|false (boolean) true if cleared Examples: > bitcoin-cli validationmockclear

Signature

validationmockclear(id?: string, type?: string) → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"validationmockclear","params":["\"<id>\"","\"<type>\""]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

NameTypeReq.Description
idstringBlock hash or model id (hex)
typestringType: quick|full|model

Result

Type:  any

true|false (boolean) true if cleared

Source: services/core-node/bcore/src/rpc/custom.cpp:977

C++ symbol: validationmockclear