diff --git a/book/src/jsonrpc-api.md b/book/src/jsonrpc-api.md index a008f52b90..74e24a5884 100644 --- a/book/src/jsonrpc-api.md +++ b/book/src/jsonrpc-api.md @@ -24,7 +24,6 @@ Methods * [confirmTransaction](#confirmtransaction) * [getAccountInfo](#getaccountinfo) * [getBalance](#getbalance) -* [getConfirmationTime](#getconfirmationTime) * [getLastId](#getlastid) * [getSignatureStatus](#getsignaturestatus) * [getTransactionCount](#gettransactioncount) @@ -202,25 +201,6 @@ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "m {"jsonrpc":"2.0","result":268,"id":1} ``` ---- -### getConfirmationTime -Returns the current cluster confirmation time in milliseconds - -##### Parameters: -None - -##### Results: -* `integer` - confirmation time in milliseconds, as unsigned 64-bit integer - -##### Example: -```bash -// Request -curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getConfirmationTime"}' http://localhost:8899 - -// Result -{"jsonrpc":"2.0","result":500,"id":1} -``` - --- ### requestAirdrop diff --git a/ci/localnet-sanity.sh b/ci/localnet-sanity.sh index 6440faed2f..2056be2c3b 100755 --- a/ci/localnet-sanity.sh +++ b/ci/localnet-sanity.sh @@ -351,15 +351,6 @@ while [[ $iteration -le $iterations ]]; do timeout 60s scripts/wallet-sanity.sh $walletRpcEndpoint ) || flag_error_if_no_leader_rotation - echo "--- RPC API: bootstrap-leader getConfirmationTime ($iteration)" - ( - set -x - curl --retry 5 --retry-delay 2 --retry-connrefused \ - -X POST -H 'Content-Type: application/json' \ - -d '{"jsonrpc":"2.0","id":1, "method":"getConfirmationTime"}' \ - http://localhost:8899 - ) || flag_error - iteration=$((iteration + 1)) if [[ $restartInterval != never && $((iteration % restartInterval)) -eq 0 ]]; then diff --git a/src/rpc_request.rs b/src/rpc_request.rs index 04c2666f1f..b53c2d09a5 100644 --- a/src/rpc_request.rs +++ b/src/rpc_request.rs @@ -125,7 +125,6 @@ pub enum RpcRequest { ConfirmTransaction, GetAccountInfo, GetBalance, - GetConfirmationTime, GetLastId, GetSignatureStatus, GetTransactionCount, @@ -146,7 +145,6 @@ impl RpcRequest { RpcRequest::ConfirmTransaction => "confirmTransaction", RpcRequest::GetAccountInfo => "getAccountInfo", RpcRequest::GetBalance => "getBalance", - RpcRequest::GetConfirmationTime => "getConfirmationTime", RpcRequest::GetLastId => "getLastId", RpcRequest::GetSignatureStatus => "getSignatureStatus", RpcRequest::GetTransactionCount => "getTransactionCount", @@ -215,11 +213,6 @@ mod tests { let request = test_request.build_request_json(1, Some(addr)); assert_eq!(request["method"], "getBalance"); - let test_request = RpcRequest::GetConfirmationTime; - let request = test_request.build_request_json(1, None); - assert_eq!(request["method"], "getConfirmationTime"); - assert_eq!(request["params"], json!(null)); - let test_request = RpcRequest::GetLastId; let request = test_request.build_request_json(1, None); assert_eq!(request["method"], "getLastId");