decred.org/dcrdex@v1.0.5/client/asset/dash/dash_test.go (about) 1 //go:build harness 2 3 package dash 4 5 // Regtest livetest expects a Dash test harness to be running. 6 // 7 // Simnet harness info: 8 // ==================== 9 // 10 // The harness has two nodes & four wallets. All four wallets have confirmed 11 // UTXOs. 12 // - Node alpha mines most of the coins into it's root wallet ("") then 13 // distributes a wide range of those coins to the other three wallets: 14 // gamma wallet, a named wallet on node alpha, beta root wallet ("") & delta 15 // wallets. 16 // 17 // This harness is structured like the bitcoin harness with the root wallets 18 // unnamed ("") 19 // 20 // "" 21 // ├── gamma 22 // │ └── wallet.dat 23 // └── wallet.dat 24 // "" 25 // ├── delta 26 // │ └── wallet.dat 27 // └── wallet.dat 28 29 import ( 30 "testing" 31 32 "decred.org/dcrdex/client/asset/btc/livetest" 33 "decred.org/dcrdex/dex" 34 ) 35 36 var ( 37 tLotSize uint64 = 1e6 38 tDASH = &dex.Asset{ 39 ID: 5, 40 Symbol: "dash", 41 Version: version, 42 MaxFeeRate: 20, 43 SwapConf: 2, 44 } 45 ) 46 47 // Livetest 48 func TestWallet(t *testing.T) { 49 livetest.Run(t, &livetest.Config{ 50 NewWallet: newWallet, 51 LotSize: tLotSize, 52 Asset: tDASH, 53 SplitTx: true, 54 FirstWallet: &livetest.WalletName{ 55 Node: "alpha", 56 Name: "gamma", 57 }, 58 SecondWallet: &livetest.WalletName{ 59 Node: "beta", 60 Name: "delta", 61 }, 62 }) 63 }