Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4

- name: Check Tenderdash seed snapshot freshness
run: node packages/dashmate/scripts/generate-tenderdash-seeds.js --check

- name: Check package version matches tag
uses: geritol/match-tag-to-package-version@0.2.0
env:
Expand Down
29 changes: 2 additions & 27 deletions packages/dashmate/configs/defaults/getMainnetConfigFactory.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import lodash from 'lodash';
import tenderdashSeeds from './tenderdashSeeds.js';

import {
NETWORK_MAINNET,
Expand Down Expand Up @@ -32,33 +33,7 @@ export default function getMainnetConfigFactory(homeDir, getBaseConfig) {
drive: {
tenderdash: {
p2p: {
seeds: [
{
id: '069639dfceec5f7c86257e6e9c46407c16ad1eab',
host: '34.211.174.194',
port: 26656,
},
{
id: 'd46e2445642b2f94158ac3c2a6d90b88b83705b8',
host: '3.76.148.150',
port: 26656,
},
{
id: 'b08a650ecfac178939f21c0c12801eccaf18a5ea',
host: '3.0.60.103',
port: 26656,
},
{
id: '4cb4a8488eb1dbabda7fb79e47ac3c14eec73c4f',
host: '152.42.151.147',
port: 26656,
},
{
id: 'fdc2239c1e0e62f3a192823d6e068d012620a2d1',
host: 'seed-1.pshenmic.dev',
port: 26656,
},
],
seeds: tenderdashSeeds.mainnet.seeds,
},
mempool: {
timeoutCheckTx: '3s',
Expand Down
19 changes: 2 additions & 17 deletions packages/dashmate/configs/defaults/getTestnetConfigFactory.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import lodash from 'lodash';
import tenderdashSeeds from './tenderdashSeeds.js';
import Config from '../../src/config/Config.js';
import {
NETWORK_TESTNET,
Expand Down Expand Up @@ -113,23 +114,7 @@ export default function getTestnetConfigFactory(homeDir, getBaseConfig) {
},
tenderdash: {
p2p: {
seeds: [
{
id: '74907790a03b51ac062c8a1453dafd72a08668a3',
host: '35.166.35.250',
port: 36656,
},
{
id: '2006632eb20e670923d13d4f53abc24468eaad4d',
host: '35.92.64.72',
port: 36656,
},
{
id: 'de3a73fc78e5c828151454156b492e4a2d985849',
host: 'seed-1.pshenmic.dev',
port: 36656,
},
],
seeds: tenderdashSeeds.testnet.seeds,
port: 36656,
},
mempool: {
Expand Down
228 changes: 228 additions & 0 deletions packages/dashmate/configs/defaults/tenderdash-seeds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
{
"mainnet": {
"chain": "main",
"height": 2535145,
"blockHash": "000000000000000b96104102f39829b47c302f38116b8b32604b118ba4e40144",
"blockTime": 1788828542,
"seeds": [
{
"id": "000b13c923c33980b49b6825e96e0825acd14adf",
"host": "202.71.14.79",
"port": 26656
},
{
"id": "00231a8b8262bdc94af817716474074c815a82b8",
"host": "65.21.237.222",
"port": 26656
},
{
"id": "0065a7d19ddc14b062ae518b0c3d67eb437afe83",
"host": "161.97.85.182",
"port": 26656
},
{
"id": "00866496450d17a5ed1faabb7a8c1ab6adb4efd6",
"host": "38.242.197.189",
"port": 26656
},
{
"id": "0196415addfd9b4f4359ad1e32743e53ac173bbc",
"host": "144.126.141.62",
"port": 26656
},
{
"id": "021b7418ffa2df2abe77e7fa087c03587208aef0",
"host": "155.133.26.122",
"port": 26656
},
{
"id": "025b00e55333e8c569907edb82f173fddb54c619",
"host": "5.189.145.80",
"port": 26656
},
{
"id": "05e3f4d1d7a95537b5ea0f5d4c145f37fd2a03ac",
"host": "173.212.245.118",
"port": 26656
},
{
"id": "06acdc54a05eb896440a470871bf7a3d27f0c58f",
"host": "157.173.122.26",
"port": 26656
},
{
"id": "07c5f4d617b6ab3c8ae49b20e362b2a217680ca9",
"host": "89.35.131.149",
"port": 26656
},
{
"id": "08f76ab6c1ca63788e9597730b4232429d1f35c6",
"host": "64.176.35.235",
"port": 26656
},
{
"id": "09131058f82dcc4ea917de5012ade7f70fb4c939",
"host": "62.171.168.44",
"port": 26656
},
{
"id": "097c726b6897e55486f83c96d70161cd46c8f9cf",
"host": "65.108.0.150",
"port": 26656
},
{
"id": "0a77eccd7aa0be2bba74cba55854a5a72397724e",
"host": "108.61.165.170",
"port": 26656
},
{
"id": "0a7eb2785ecbab3e72f351e81e0a49f943d05933",
"host": "139.99.201.103",
"port": 26656
},
{
"id": "0b99d86c0383a9aae6f68293b48f4ea73246ccbb",
"host": "45.135.180.130",
"port": 26656
},
{
"id": "0d3c71247defe841a0ed8169788a9aa3a170e3e4",
"host": "173.199.71.83",
"port": 26656
},
{
"id": "0e3c5652f1ea227798b83403e19c80ce16812e89",
"host": "178.157.91.184",
"port": 26656
},
{
"id": "0fc7db91892879ced156cf7333a207669e7e1a35",
"host": "132.243.197.38",
"port": 26656
},
{
"id": "0fde6bb71d91a42f7dfa5e8f0588fb23d8be17b3",
"host": "178.215.237.135",
"port": 26656
}
],
"previousSeedSetHashes": [
"3d364d2040d1b69cfea53f98e56e8a331c6550c3a9f9fbcaea1e86c382867bce",
"52e830a07b2bffe900fddb1296128a4372fe941328c1b5d3203415b935522220",
"67bbbf4b10a9a6c2856aa0dfb588f3776bc4a64b8c1d42d4a51c292b6af44586"
]
},
"testnet": {
"chain": "test",
"height": 1549489,
"blockHash": "000000784218bfa76fd8b7d7df7352b7cf9e8e01d9231a46fc861b405c5e75ed",
"blockTime": 1788828594,
"seeds": [
{
"id": "02aa69f8ef6666e7cad6d9323755a0ef3c1b6bd9",
"host": "68.67.122.15",
"port": 36656
},
{
"id": "0498ade3c80045c2a7520e921180ae1c39da5c57",
"host": "68.67.122.25",
"port": 36656
},
{
"id": "0785881ea118c05df7bb9dd2195a78f10cdde0bb",
"host": "68.67.122.4",
"port": 36656
},
{
"id": "1ffbf1d32541dcb8f5555305295704a9ff9adc24",
"host": "68.67.122.17",
"port": 36656
},
{
"id": "337b7fb5d2c531825c3e0123ac3354018085b302",
"host": "68.67.122.20",
"port": 36656
},
{
"id": "33d02004599c1e82a9b373de05dff62cbc0e2ec9",
"host": "162.35.243.85",
"port": 36656
},
{
"id": "35d9eb76397d05b43b5cd8da7ccfa8408bc89ab3",
"host": "68.67.122.26",
"port": 36656
},
{
"id": "3e8b10646ee9d6c28d75c280b357dd3a9ae9f962",
"host": "68.67.122.11",
"port": 36656
},
{
"id": "41b308f737ca9e39f67b553158903198a88c516e",
"host": "68.67.122.21",
"port": 36656
},
{
"id": "5192501d94ca7b039afbc0ed6a83aec48614e827",
"host": "68.67.122.3",
"port": 36656
},
{
"id": "5bdbf34a0dad860c6ec71523ae39373325225cc1",
"host": "68.67.122.12",
"port": 36656
},
{
"id": "62e960a3f6b650feed98a266b3ccdf6e363562cf",
"host": "68.67.122.1",
"port": 36656
},
{
"id": "67e05b1b52c7c896adf20035036fe1d30dcefc9c",
"host": "68.67.122.27",
"port": 36656
},
{
"id": "68c506d43816d1a8389c860c1d162be44d1e777c",
"host": "68.67.122.10",
"port": 36656
},
{
"id": "6d57707c196e06487d326094c964f258f5b77c35",
"host": "68.67.122.23",
"port": 36656
},
{
"id": "7034f0d3853c5351fb8e0ffd3c1daf12c51c2d89",
"host": "68.67.122.9",
"port": 36656
},
{
"id": "711fd9548ae19b2e91c7a9b4067000467ccdd2b5",
"host": "68.67.122.19",
"port": 36656
},
{
"id": "7478cfd163788e3bbe09645776cf59642f28e379",
"host": "68.67.122.2",
"port": 36656
},
{
"id": "7ada3e486409b39c94a0833c8d782f35bc24e96a",
"host": "68.67.122.5",
"port": 36656
},
{
"id": "8feb00404d6f765856c95e587b2523a365bc7258",
"host": "68.67.122.24",
"port": 36656
}
],
"previousSeedSetHashes": [
"8a32b8779d5eae671428ec2cbf413c5ebb1a7cd9103007c03b4c0299bec5a274",
"990e93f1fd0831cf839c18c0672e460eb72515efbd78cdfcb5b4a343f8d577aa"
]
},
"version": "4.2.0-dev.5"
}
4 changes: 4 additions & 0 deletions packages/dashmate/configs/defaults/tenderdashSeeds.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import fs from 'fs';

// Generated by scripts/generate-tenderdash-seeds.js during release preparation.
export default JSON.parse(fs.readFileSync(new URL('./tenderdash-seeds.json', import.meta.url), 'utf8'));
5 changes: 5 additions & 0 deletions packages/dashmate/configs/getConfigFileMigrationsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import fs from 'fs';
import lodash from 'lodash';
import path from 'path';
import getDefaultSeedUpdates from '../src/tenderdash/getDefaultSeedUpdates.js';

import {
NETWORK_LOCAL,
Expand Down Expand Up @@ -1702,6 +1703,10 @@ export default function getConfigFileMigrationsFactory(homeDir, defaultConfigs)
return configFile;
},
'4.2.0': (configFile) => {
getDefaultSeedUpdates(configFile.configs).forEach(([name, seeds]) => {
configFile.configs[name].platform.drive.tenderdash.p2p.seeds = seeds;
});

Object.entries(configFile.configs)
.forEach(([, options]) => {
// Repeated from the 4.1.1 migration: a config written by a
Expand Down
Loading
Loading