Browse Source

docs: add documentation of unsafe_flush_mempool to openapi (#6947)

pull/6948/head
Callum Waters 3 years ago
committed by GitHub
parent
commit
5db2a39643
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions
  1. +25
    -0
      rpc/openapi/openapi.yaml

+ 25
- 0
rpc/openapi/openapi.yaml View File

@ -601,6 +601,31 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/unsafe_flush_mempool:
get:
summary: Flush mempool of all unconfirmed transactions
operationId: unsafe_flush_mempool
tags:
- Unsafe
description:
Flush flushes out the mempool. It acquires a read-lock, fetches all the
transactions currently in the transaction store and removes each transaction
from the store and all indexes and finally resets the cache.
NOTE: Flushing the mempool may leave the mempool in an inconsistent state.
responses:
"200":
description: empty answer
content:
application/json:
schema:
$ref: "#/components/schemas/EmptyResponse"
"500":
description: empty error
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/blockchain:
get:
summary: "Get block headers (max: 20) for minHeight <= height <= maxHeight."


Loading…
Cancel
Save