Function node_rpc_client::remove_all_extrinsics[][src]

pub(crate) fn remove_all_extrinsics(
    client: AuthorClient<Hash, Hash>
) -> impl Future<Item = (), Error = RpcError>
Expand description

Remove all pending extrinsics from the node.

The example code takes AuthorClient and first:

  1. Calls the pending_extrinsics method to get all extrinsics in the pool.
  2. Then calls remove_extrinsic passing the obtained raw extrinsics.

As the result of running the code the entire content of the transaction pool is going to be removed and the extrinsics are going to be temporarily banned.