Switch to private testnet and upgrade#105
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
🟢 Coverage ∅ diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation (-1.00%) Diff coverage ✅ ∅ diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (3c59948) Report Missing Report Missing Report Missing Head commit (cab1802) 828 (+0) 499 (+0) 60.27% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#105) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Might make more sense to use regtest edit: i just noticed that it was using regtest before. so, nack changing to a private testnet. All of this can be done more cleanly using a private regtest network. |
070a249 to
cab1802
Compare
| "43Pnj6ZKGFTJhaLhiecSFfLfr64KPJZw7MyGH73T6PTDekBBvsTAaWEUSM4bmJqDuYLizhA13jQkMRPpz9VXBCBqQQb6y5L", | ||
| viewkey = "1bfa03b0c78aa6bc8292cf160ec9875657d61e889c41d0ebe5c54fd3a2c4b40e", | ||
| "9yEzCbcYdg6MqZ5AkEh8V3YCriyN1tvmtWEHdBEUHkF6D6kN1MMD2Kd2QVWoTY67aNHNYKMUP3xfteLS2QNavJxpJdx6mWj", | ||
| viewkey = "1f4668e8c1979b4c7dae13dc149fd95cd7ff2883becffe160c21f9e02c821c08", |
There was a problem hiding this comment.
Why not use regtest and leave these values unchanged?
| "43Pnj6ZKGFTJhaLhiecSFfLfr64KPJZw7MyGH73T6PTDekBBvsTAaWEUSM4bmJqDuYLizhA13jQkMRPpz9VXBCBqQQb6y5L"); | ||
| "9yEzCbcYdg6MqZ5AkEh8V3YCriyN1tvmtWEHdBEUHkF6D6kN1MMD2Kd2QVWoTY67aNHNYKMUP3xfteLS2QNavJxpJdx6mWj"); | ||
| await s.Page.Locator("input#PrivateViewKey") | ||
| .FillAsync("1bfa03b0c78aa6bc8292cf160ec9875657d61e889c41d0ebe5c54fd3a2c4b40e"); | ||
| .FillAsync("1f4668e8c1979b4c7dae13dc149fd95cd7ff2883becffe160c21f9e02c821c08"); |
| .FillAsync("1bfa03b0c78aa6bc8292cf160ec9875657d61e889c41d0ebe5c54fd3a2c4b40e"); | ||
| .FillAsync("1f4668e8c1979b4c7dae13dc149fd95cd7ff2883becffe160c21f9e02c821c08"); |
| PrimaryAddress = "43Pnj6ZKGFTJhaLhiecSFfLfr64KPJZw7MyGH73T6PTDekBBvsTAaWEUSM4bmJqDuYLizhA13jQkMRPpz9VXBCBqQQb6y5L", | ||
| PrivateViewKey = "1bfa03b0c78aa6bc8292cf160ec9875657d61e889c41d0ebe5c54fd3a2c4b40e", | ||
| WalletFileName = "wallet", | ||
| Password = "" | ||
| }); | ||
| await moneroRpcProvider.WalletRpcClients["XMR"] | ||
| .SendCommandAsync<GenerateFromKeysRequest, GenerateFromKeysResponse>("generate_from_keys", | ||
| new GenerateFromKeysRequest | ||
| { | ||
| PrimaryAddress = | ||
| "9yEzCbcYdg6MqZ5AkEh8V3YCriyN1tvmtWEHdBEUHkF6D6kN1MMD2Kd2QVWoTY67aNHNYKMUP3xfteLS2QNavJxpJdx6mWj", | ||
| PrivateViewKey = "1f4668e8c1979b4c7dae13dc149fd95cd7ff2883becffe160c21f9e02c821c08", |
| .FillAsync("43Pnj6ZKGFTJhaLhiecSFfLfr64KPJZw7MyGH73T6PTDekBBvsTAaWEUSM4bmJqDuYLizhA13jQkMRPpz9VXBCBqQQb6y5L"); | ||
| .FillAsync("9yEzCbcYdg6MqZ5AkEh8V3YCriyN1tvmtWEHdBEUHkF6D6kN1MMD2Kd2QVWoTY67aNHNYKMUP3xfteLS2QNavJxpJdx6mWj"); | ||
| await s.Page.Locator("input#PrivateViewKey") | ||
| .FillAsync("1bfa03b0c78aa6bc8292cf160ec9875657d61e889c41d0ebe5c54fd3a2c4b40e"); | ||
| .FillAsync("1f4668e8c1979b4c7dae13dc149fd95cd7ff2883becffe160c21f9e02c821c08"); |
| container_name: node_1 | ||
| command: [ | ||
| "monerod", | ||
| "--fixed-difficulty=150", |
There was a problem hiding this comment.
I presume this is changed from 1 as to limit the block rate?
There was a problem hiding this comment.
this a battle tested value from haveno-ts https://github.com/haveno-dex/haveno-ts/blob/master/docker/docker-compose.yml#L39 to mine blocks efficiently / in time
| "--confirm-external-bind", | ||
| "--add-exclusive-node=node_2:28080", | ||
| "--block-notify=/bin/sh ./scripts/notifier.sh -k -X GET https://host.docker.internal:14142/monerolikedaemoncallback/block?cryptoCode=xmr&hash=%s", | ||
| "--testnet", |
There was a problem hiding this comment.
| "--testnet", | |
| "--regtest", |
| "--add-exclusive-node=node_2:28080", | ||
| "--block-notify=/bin/sh ./scripts/notifier.sh -k -X GET https://host.docker.internal:14142/monerolikedaemoncallback/block?cryptoCode=xmr&hash=%s", | ||
| "--testnet", | ||
| "--no-igd", |
There was a problem hiding this comment.
| "--no-igd", |
removed upstream in v0.18.5.0
There was a problem hiding this comment.
| command: [ | ||
| "monero-wallet-rpc", | ||
| "--log-level=2", | ||
| "--allow-mismatched-daemon-version", |
they both use real pow, but testnet uses v1 transactions, and probably not even randomx? |
|
no need for randomx here.. i just need to pay for the invoice.. should be easy to switch/modify if we would need it tho |
|
Yea.. you said that regtest doesnt use pow.. it does.. and, it uses the same pow as mainnet. it also uses the same type of transactions. your old setup had a fixed difficulty of 1, the new setup has a fixed difficulty of 100. They both use pow |
|
but I also said it's 1:1 to prod.. testnet wont allow you to mine instantly for example.. (saves headache) |
https://moneroexamples.github.io/private-testnet/
related to: btcpay-monero/monero-csharp#80