<p>As testnet is un-usable ;-( I have setup a regtest network for DAO testing.</p>
<p>1 master node which Bitcoind only. A script creates all 9-11 minutes a new block<br>
4 seed nodes connecting only to that the node.<br>
1 explorer node (<a rel="nofollow" href="https://explorer.bisq.network/testnet/">https://explorer.bisq.network/testnet/</a>) connecting only to the master node.</p>
<p>I added a new basecurrency enum DAO_TESTNET which is technically a regtest but uses the IP of the master node for the bitcoin connection.</p>
<p>It is important that nobody creates blocks and connects to the master node to avoid disruption. By controlling block creation with a script on only one node we can easier test reorg scenarios.<br>
We are aware that this regtest set up is less realistic as mainnet, but the alternative to create a real testnet with mining nodes would have been much more effort and involve compiling of bitcoind.</p>
<p>I am still testing all so please don't merge yet but welcome to review and help testing.<br>
The user can select the DAO TESTNET in settings same as with TESTNET.<br>
I will send by email to the main testers a data directory with full wallets (BTC and BSQ) ;-).</p>
<p>Testnet will not work anymore as no seed nodes are running anymore.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/2447'>https://github.com/bisq-network/bisq/pull/2447</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Use fjr5w4eckjghqtnu as regtest seed node</li>
  <li>Change log level to debug</li>
  <li>Change CHECK_MEMORY_PERIOD_SEC from 10 sec to 5 min.</li>
  <li>Add DAO_TESTNET baseCurrencyNetwork enum</li>
  <li>Add DAO_TESTNET_GENESIS_TX_ID</li>
  <li>Add BTC_DAO_TEST_NET_EXPLORER</li>
  <li>Remove dao DB files, add trade stats for dao_testnet</li>
  <li>Change testnet seeds to regtest seeds</li>
  <li>Use 104.248.31.39 as regTestHost if DaoTestNet is selected</li>
  <li>Add num tx to log when new block is parsed</li>
  <li>Use display string for enum</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-0">core/src/main/java/bisq/core/app/BisqEnvironment.java</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-1">core/src/main/java/bisq/core/app/BisqExecutable.java</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-2">core/src/main/java/bisq/core/app/misc/ExecutableForAppWithP2p.java</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-3">core/src/main/java/bisq/core/btc/BaseCurrencyNetwork.java</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-4">core/src/main/java/bisq/core/btc/BitcoinModule.java</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-5">core/src/main/java/bisq/core/btc/nodes/BtcNodes.java</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-6">core/src/main/java/bisq/core/dao/governance/param/Param.java</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-7">core/src/main/java/bisq/core/dao/node/full/RpcService.java</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-8">core/src/main/java/bisq/core/dao/state/DaoStateService.java</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-9">core/src/main/java/bisq/core/dao/state/GenesisTxInfo.java</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-10">core/src/main/java/bisq/core/locale/CurrencyUtil.java</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-11">core/src/main/java/bisq/core/network/p2p/seed/DefaultSeedNodeAddresses.java</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-12">core/src/main/java/bisq/core/trade/statistics/AssetTradeActivityCheck.java</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-13">core/src/main/java/bisq/core/user/Preferences.java</a>
    (27)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-14">core/src/main/resources/i18n/displayStrings.properties</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-15">desktop/src/main/java/bisq/desktop/app/BisqApp.java</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-16">desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-17">desktop/src/main/java/bisq/desktop/util/GUIUtil.java</a>
    (2)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-18">p2p/src/main/resources/AccountAgeWitnessStore_BTC_TESTNET</a>
    (0)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-19">p2p/src/main/resources/BlindVoteStore_BTC_TESTNET</a>
    (0)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-20">p2p/src/main/resources/DaoStateStore_BTC_TESTNET</a>
    (0)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-21">p2p/src/main/resources/ProposalStore_BTC_TESTNET</a>
    (0)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-22">p2p/src/main/resources/TempProposalStore_BTC_TESTNET</a>
    (0)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-23">p2p/src/main/resources/TradeStatistics2Store_BTC_DAO_TESTNET</a>
    (0)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-24">p2p/src/main/resources/TradeStatistics2Store_BTC_REGTEST</a>
    (0)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/2447/files#diff-25">p2p/src/main/resources/TradeStatistics2Store_BTC_TESTNET</a>
    (0)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/2447.patch'>https://github.com/bisq-network/bisq/pull/2447.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/2447.diff'>https://github.com/bisq-network/bisq/pull/2447.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/2447">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtriNaffZcVPlc7_Jdb3R739u5JHFks5vPfRygaJpZM4bGczx">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtvozQ-eTU9_uJAVlcOhNQ0ozR0pvks5vPfRygaJpZM4bGczx.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/bisq","title":"bisq-network/bisq","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/bisq"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"[WIP] Dao serverside regtest (#2447)"}],"action":{"name":"View Pull Request","url":"https://github.com/bisq-network/bisq/pull/2447"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/2447",
"url": "https://github.com/bisq-network/bisq/pull/2447",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>