diff --git a/rpc/openapi/openapi.yaml b/rpc/openapi/openapi.yaml index 535320b3f..1c8883b24 100644 --- a/rpc/openapi/openapi.yaml +++ b/rpc/openapi/openapi.yaml @@ -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."