[bisq-network/bisq] [WIP] Dao serverside regtest (#2447)

Manfred Karrer notifications at github.com
Thu Feb 21 01:20:50 UTC 2019


As testnet is un-usable ;-( I have setup a regtest network for DAO testing.

1 master node which Bitcoind only. A script creates all 9-11 minutes a new block
4 seed nodes connecting only to that the node.
1 explorer node (https://explorer.bisq.network/testnet/) connecting only to the master node.

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.

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.
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.

I am still testing all so please don't merge yet but welcome to review and help testing.
The user can select the DAO TESTNET in settings same as with TESTNET.
I will send by email to the main testers a data directory with full wallets (BTC and BSQ) ;-).

Testnet will not work anymore as no seed nodes are running anymore.
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/2447

-- Commit Summary --

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

-- File Changes --

    M core/src/main/java/bisq/core/app/BisqEnvironment.java (3)
    M core/src/main/java/bisq/core/app/BisqExecutable.java (3)
    M core/src/main/java/bisq/core/app/misc/ExecutableForAppWithP2p.java (2)
    M core/src/main/java/bisq/core/btc/BaseCurrencyNetwork.java (11)
    M core/src/main/java/bisq/core/btc/BitcoinModule.java (10)
    M core/src/main/java/bisq/core/btc/nodes/BtcNodes.java (2)
    M core/src/main/java/bisq/core/dao/governance/param/Param.java (14)
    M core/src/main/java/bisq/core/dao/node/full/RpcService.java (4)
    M core/src/main/java/bisq/core/dao/state/DaoStateService.java (6)
    M core/src/main/java/bisq/core/dao/state/GenesisTxInfo.java (8)
    M core/src/main/java/bisq/core/locale/CurrencyUtil.java (3)
    M core/src/main/java/bisq/core/network/p2p/seed/DefaultSeedNodeAddresses.java (16)
    M core/src/main/java/bisq/core/trade/statistics/AssetTradeActivityCheck.java (2)
    M core/src/main/java/bisq/core/user/Preferences.java (27)
    M core/src/main/resources/i18n/displayStrings.properties (2)
    M desktop/src/main/java/bisq/desktop/app/BisqApp.java (7)
    M desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java (1)
    M desktop/src/main/java/bisq/desktop/util/GUIUtil.java (2)
    D p2p/src/main/resources/AccountAgeWitnessStore_BTC_TESTNET (0)
    D p2p/src/main/resources/BlindVoteStore_BTC_TESTNET (0)
    D p2p/src/main/resources/DaoStateStore_BTC_TESTNET (0)
    D p2p/src/main/resources/ProposalStore_BTC_TESTNET (0)
    D p2p/src/main/resources/TempProposalStore_BTC_TESTNET (0)
    A p2p/src/main/resources/TradeStatistics2Store_BTC_DAO_TESTNET (0)
    M p2p/src/main/resources/TradeStatistics2Store_BTC_REGTEST (0)
    M p2p/src/main/resources/TradeStatistics2Store_BTC_TESTNET (0)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/2447.patch
https://github.com/bisq-network/bisq/pull/2447.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/2447
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190220/f7cc8df2/attachment-0001.html>


More information about the bisq-github mailing list