Language

Choose a language

/build/rpc / mining

validationmockset

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

validationmockset "id" "type" "value" Set a mock validation response for a given id and type (mock backend only) Arguments: 1. id (string, required) Block hash or model id (hex) 2. type (string, required) Type: quick|full|model 3. value (string, required) Response value (see help) Result: true|false (boolean) true if set Examples: > bitcoin-cli validationmockset <id> full green

Signature

validationmockset(id: string, type: string, value: string) → any

Code samples

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

Parameters

NameTypeReq.Description
idstringyesBlock hash or model id (hex)
typestringyesType: quick|full|model
valuestringyesResponse value (see help)

Result

Type:  any

true|false (boolean) true if set

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

C++ symbol: validationmockset