Skip to content

Commit

Permalink
Add processed commitment to accountSubscribe. Bump version to 1.6-SNA…
Browse files Browse the repository at this point in the history
…PSHOT
  • Loading branch information
skynetcapital committed Jun 28, 2021
1 parent 6b99b68 commit c29ec46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.p2p</groupId>
<artifactId>solanaj</artifactId>
<packaging>jar</packaging>
<version>1.5</version>
<version>1.6-SNAPSHOT</version>
<name>solanaj</name>
<url>https://github.com/skynetcapital/solanaj</url>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.p2p.solanaj.rpc.types.RpcNotificationResult;
import org.p2p.solanaj.rpc.types.RpcRequest;
import org.p2p.solanaj.rpc.types.RpcResponse;
import org.p2p.solanaj.rpc.types.config.Commitment;
import org.p2p.solanaj.ws.listeners.NotificationEventListener;

public class SubscriptionWebSocketClient extends WebSocketClient {
Expand Down Expand Up @@ -69,7 +70,7 @@ public SubscriptionWebSocketClient(URI serverURI) {
public void accountSubscribe(String key, NotificationEventListener listener) {
List<Object> params = new ArrayList<>();
params.add(key);
params.add(Map.of("encoding", "jsonParsed"));
params.add(Map.of("encoding", "jsonParsed", "commitment", Commitment.PROCESSED.getValue()));

RpcRequest rpcRequest = new RpcRequest("accountSubscribe", params);

Expand Down

0 comments on commit c29ec46

Please sign in to comment.