Skip to content

Commit

Permalink
Merge pull request #2 from victor-tucci/master
Browse files Browse the repository at this point in the history
storage-server-hardfork and seed_node's changed
  • Loading branch information
sanada08 authored Nov 20, 2021
2 parents b2b4055 + 67efa7c commit 0c0dbe7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions contrib/onion-request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Both PAYLOAD and CONTROL may be passed filenames to read prefixed with `@` (for
return 1;
}

const oxenmq::address TESTNET_OMQ{"tcp://209.250.252.119:19091/"};
const oxenmq::address MAINNET_OMQ{"tcp://public.beldex.io:22029"};
const oxenmq::address TESTNET_OMQ{"tcp://54.80.140.73:19091/"};
const oxenmq::address MAINNET_OMQ{"tcp://public.beldex.io:29091"};

void onion_request(std::string ip, uint16_t port, std::vector<std::pair<ed25519_pubkey, x25519_pubkey>> keys,
bool mainnet, std::optional<EncryptType> enc_type, std::string_view payload, std::string_view control);
Expand Down
10 changes: 5 additions & 5 deletions httpserver/master_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ void MasterNode::bootstrap_data() {

std::vector<oxenmq::address> seed_nodes;
if (beldex::is_mainnet) {
seed_nodes.emplace_back("curve://public.beldex.io:22027/3c157ed3c675f56280dc5d8b2f00b327b5865c127bf2c6c42becc3ca73d9132b");
seed_nodes.emplace_back("curve://img.str:22027/449a8011d3abcb97f5db6d91529b1106b0590d2f2a86635104fe7059ffeeef47");
seed_nodes.emplace_back("curve://storage.seed1.beldex.io:22027/6d4146b51404576efa6f582ea0562532b25ba4aceddb0d5d12bc127360678551");
seed_nodes.emplace_back("curve://storage.seed3.beldex.io:22027/146fb2840583c32f7e281b81d8c5568cc7bb04155fb9968987bb265b6ca9816e");
seed_nodes.emplace_back("curve://public.beldex.io:29091/eee01f183b2079a529f4ba8933c0f0fcb8053337e003870ef6467a97f2259d73");
seed_nodes.emplace_back("curve://seed1.beldex.io:29091/37659353131815666979acea91cefa909e3413811a5453c434879b3d7e5b7031");
seed_nodes.emplace_back("curve://seed2.rpcnode.stream:29091/e06f6b3396b00430ff1ecfaeaa6f68030b5bcd8c3fd2fe813a0a5baa1cb9d008");
seed_nodes.emplace_back("curve://seed3.beldex.io:29091/bcf02e1364237e549f45accc8cab95895198c0bc0e78a86f52df74d1c2dd8204");
} else {
seed_nodes.emplace_back("curve://209.250.252.119:19091/fff40f17fa8aecd597346d51d6e829bc2fe667379191e5230bc31e157646694e");
seed_nodes.emplace_back("curve://54.80.140.73:19091/6713a9a96ea47b25223de373edc0203cf8b4d625e96bf2656b042db8e398064");
}

auto req_counter = std::make_shared<std::atomic<int>>(0);
Expand Down
12 changes: 6 additions & 6 deletions httpserver/master_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ inline constexpr uint64_t TEST_BLOCKS_BUFFER = 4;
using hf_revision = std::pair<int, int>;

// The earliest hardfork *this* version of storage server will work on:
inline constexpr hf_revision STORAGE_SERVER_HARDFORK = {15, 0};
inline constexpr hf_revision STORAGE_SERVER_HARDFORK = {12, 0};
// HF at which we switch to /ping_test/v1 instead of /swarms/ping_test/v1 for HTTPS pings
inline constexpr hf_revision HARDFORK_HTTPS_PING_TEST_URL = {15, 1};
inline constexpr hf_revision HARDFORK_HTTPS_PING_TEST_URL = {12, 1};
// HF at which we switch to OMQ storage tests instead of HTTPS
inline constexpr hf_revision HARDFORK_OMQ_STORAGE_TESTS = {15, 1};
inline constexpr hf_revision HARDFORK_OMQ_STORAGE_TESTS = {12, 1};
// HF at which `store` requests become recursive (rather than having unreported background
// distribution).
inline constexpr hf_revision HARDFORK_RECURSIVE_STORE = {15, 1};
inline constexpr hf_revision HARDFORK_RECURSIVE_STORE = {12, 1};
// When we start using the more compact BT message serialization
inline constexpr hf_revision HARDFORK_BT_MESSAGE_SERIALIZATION = {15, 1};
inline constexpr hf_revision HARDFORK_BT_MESSAGE_SERIALIZATION = {12, 1};
// Hardfork where we switch the hash function to base64(blake2b) from hex(sha512)
inline constexpr hf_revision HARDFORK_HASH_BLAKE2B = {15, 1};
inline constexpr hf_revision HARDFORK_HASH_BLAKE2B = {12, 1};

class OxenmqServer;
struct OnionRequestMetadata;
Expand Down

0 comments on commit 0c0dbe7

Please sign in to comment.