Skip to content

Commit

Permalink
Add Futurenet in Network config (#1359)
Browse files Browse the repository at this point in the history
### Description

Add Futurenet in Network config

### Context

Previously, Futurenet was not supported 

### Testing

- `./gradlew test`


### Documentation

N/A

### Known limitations

N/A
  • Loading branch information
Ifropc authored May 10, 2024
1 parent 7d3f6c1 commit 8f714da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package org.stellar.anchor.platform.config;

import static org.stellar.anchor.util.StringHelper.isEmpty;
import static org.stellar.sdk.Network.PUBLIC;
import static org.stellar.sdk.Network.TESTNET;
import static org.stellar.sdk.Network.*;

import java.util.List;
import lombok.Data;
Expand Down Expand Up @@ -93,6 +92,8 @@ public String getStellarNetworkPassphrase() {
return TESTNET.getNetworkPassphrase();
case "PUBLIC":
return PUBLIC.getNetworkPassphrase();
case "FUTURENET":
return FUTURENET.getNetworkPassphrase();
default:
throw new RuntimeException(
"Invalid stellar network " + stellarNetwork + ". Please check the configuration.");
Expand Down
1 change: 0 additions & 1 deletion platform/src/main/resources/example.anchor-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ host_url: http://localhost:8080

stellar_network:
network: TESTNET
network_passphrase: Test SDF Network ; September 2015
horizon_url: https://horizon-testnet.stellar.org

callback_api:
Expand Down

0 comments on commit 8f714da

Please sign in to comment.