fix: update node exit rpc to match solana changes
This commit is contained in:
committed by
Michael Vines
parent
8949f321c5
commit
7191159377
@ -823,8 +823,8 @@ export class Connection {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
async fullnodeExit(): Promise<boolean> {
|
||||
const unsafeRes = await this._rpcRequest('fullnodeExit', []);
|
||||
async validatorExit(): Promise<boolean> {
|
||||
const unsafeRes = await this._rpcRequest('validatorExit', []);
|
||||
const res = jsonRpcResult('boolean')(unsafeRes);
|
||||
if (res.error) {
|
||||
throw new Error(res.error.message);
|
||||
|
Reference in New Issue
Block a user