Raft

For more details about the raft JSON-RPC APIs

Source:

Methods

(inner) addLearner(enodeId) → {Number}

Source:
Parameters:
Name Type Description
enodeId String

enode id of the learner node to be added to the network

Returns:

Raft id for the node being added

Type
Number

(inner) addPeer(enodeId) → {Number}

Source:
Parameters:
Name Type Description
enodeId String

enode id of the node to be added to the network

Returns:

Raft id for the node being added

Type
Number

(inner) cluster() → {Array.<raftClusterDetails>}

Source:
Returns:

result

Type
Array.<raftClusterDetails>

(inner) leader() → {String}

Source:
Returns:

enode id of the leader

Type
String

(inner) promoteToPeer(raftId) → {Boolean}

Source:
Parameters:
Name Type Description
raftId Number

Raft id of the node to be promoted

Returns:
Type
Boolean

(inner) removePeer(raftId) → {null}

Source:
Parameters:
Name Type Description
raftId Number

Raft id of the node to be removed from the cluster

Returns:
Type
null

(inner) role() → {String}

Source:
Returns:

Role of the node in Raft GoQuorum

Type
String