Skip to content

Commit

Permalink
Merge pull request #637 from haammar-ledger/algorand-proxy
Browse files Browse the repository at this point in the history
Update Algorand reverse proxy endpoints for libcore and tests
  • Loading branch information
alekece authored Aug 14, 2020
2 parents 8796ba2 + c23b5c9 commit 4b2e5c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/wallet/algorand/AlgorandWalletFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace core {
namespace algorand {

// Aliases for long constants names
const std::string ALGORAND_API_ENDPOINT = "https://algorand.coin.staging.aws.ledger.com";
const std::string ALGORAND_API_ENDPOINT = "https://algorand.coin.ledger.com";
const std::string ALGORAND_NODE_EXPLORER = api::AlgorandBlockchainExplorerEngines::ALGORAND_NODE;

WalletFactory::WalletFactory(const api::Currency &currency, const std::shared_ptr<WalletPool>& pool) :
Expand Down
4 changes: 2 additions & 2 deletions core/test/algorand/AlgorandExplorerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class AlgorandExplorerTest : public BaseFixture {
BaseFixture::SetUp();

auto worker = dispatcher->getSerialExecutionContext("worker");
// NOTE: we run the tests on the TestNet
auto client = std::make_shared<HttpClient>("https://testnet-algorand.api.purestake.io", http, worker);
// NOTE: we run the tests on the staging environment which is on the TestNet
auto client = std::make_shared<HttpClient>("https://algorand.coin.staging.aws.ledger.com", http, worker);

// Read API key from environment
auto configuration = std::make_shared<DynamicObject>();
Expand Down
3 changes: 2 additions & 1 deletion core/test/algorand/AlgorandSynchronizationTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class AlgorandSynchronizationTest : public WalletFixture<WalletFactory> {
auto configuration = DynamicObject::newInstance();
configuration->putString(api::Configuration::KEYCHAIN_DERIVATION_SCHEME,"44'/<coin_type>'/<account>'/<node>'/<address>");
configuration->putString(api::Configuration::BLOCKCHAIN_EXPLORER_ENGINE, api::AlgorandBlockchainExplorerEngines::ALGORAND_NODE);
configuration->putString(api::Configuration::BLOCKCHAIN_EXPLORER_API_ENDPOINT, "https://testnet-algorand.api.purestake.io"); // NOTE: We run Algorand tests on the TestNet
// NOTE: we run the tests on the staging environment which is on the TestNet
configuration->putString(api::Configuration::BLOCKCHAIN_EXPLORER_API_ENDPOINT, "https://algorand.coin.staging.aws.ledger.com");

auto wallet = std::dynamic_pointer_cast<Wallet>(wait(pool->createWallet("test-wallet", "algorand", configuration)));

Expand Down

0 comments on commit 4b2e5c7

Please sign in to comment.