Skip to content

Commit

Permalink
reto
Browse files Browse the repository at this point in the history
  • Loading branch information
retoaccess1 authored and nahuhh committed Nov 12, 2024
1 parent ea8badd commit ae38b2f
Show file tree
Hide file tree
Showing 24 changed files with 40 additions and 24 deletions.
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ seednode:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=1002 \
--appName=haveno-XMR_MAINNET_Seed_1002 \
--appName=haveno-reto-XMR_MAINNET_Seed_1002 \
--xmrNode=http://127.0.0.1:18081 \

seednode2:
Expand All @@ -439,7 +439,7 @@ seednode2:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=1003 \
--appName=haveno-XMR_MAINNET_Seed_1003 \
--appName=haveno-reto-XMR_MAINNET_Seed_1003 \
--xmrNode=http://127.0.0.1:18081 \

arbitrator-daemon-mainnet:
Expand All @@ -449,7 +449,7 @@ arbitrator-daemon-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=haveno-XMR_MAINNET_arbitrator \
--appName=haveno-reto-XMR_MAINNET_arbitrator \
--apiPassword=apitest \
--apiPort=1200 \
--passwordRequired=false \
Expand All @@ -462,7 +462,7 @@ arbitrator-desktop-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=haveno-XMR_MAINNET_arbitrator \
--appName=haveno-reto-XMR_MAINNET_arbitrator \
--apiPassword=apitest \
--apiPort=1200 \
--xmrNode=http://127.0.0.1:18081 \
Expand All @@ -474,7 +474,7 @@ haveno-daemon-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=Haveno \
--appName=Haveno-reto \
--apiPassword=apitest \
--apiPort=1201 \
--useNativeXmrWallet=false \
Expand All @@ -486,7 +486,7 @@ haveno-desktop-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=Haveno \
--appName=Haveno-reto \
--apiPassword=apitest \
--apiPort=1201 \
--useNativeXmrWallet=false \
Expand All @@ -498,7 +498,7 @@ user1-daemon-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=haveno-XMR_MAINNET_user1 \
--appName=haveno-reto-XMR_MAINNET_user1 \
--apiPassword=apitest \
--apiPort=1202 \
--passwordRequired=false \
Expand All @@ -511,7 +511,7 @@ user1-desktop-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=haveno-XMR_MAINNET_user1 \
--appName=haveno-reto-XMR_MAINNET_user1 \
--apiPassword=apitest \
--apiPort=1202 \
--useNativeXmrWallet=false \
Expand All @@ -523,7 +523,7 @@ user2-daemon-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=haveno-XMR_MAINNET_user2 \
--appName=haveno-reto-XMR_MAINNET_user2 \
--apiPassword=apitest \
--apiPort=1203 \
--passwordRequired=false \
Expand All @@ -536,7 +536,7 @@ user2-desktop-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=haveno-XMR_MAINNET_user2 \
--appName=haveno-reto-XMR_MAINNET_user2 \
--apiPassword=apitest \
--apiPort=1203 \
--useNativeXmrWallet=false \
Expand All @@ -548,7 +548,7 @@ user3-desktop-mainnet:
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=9999 \
--appName=haveno-XMR_MAINNET_user3 \
--appName=haveno-reto-XMR_MAINNET_user3 \
--apiPassword=apitest \
--apiPort=1204 \
--useNativeXmrWallet=false \
Expand Down
5 changes: 4 additions & 1 deletion core/src/main/java/haveno/core/alert/AlertManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ protected List<String> getPubKeyList() {
"026c581ad773d987e6bd10785ac7f7e0e64864aedeb8bce5af37046de812a37854",
"025b058c9f2c60d839669dbfa5578cf5a8117d60e6b70e2f0946f8a691273c6a36");
case XMR_MAINNET:
return List.of();
return List.of(
"02e9dc14edddde19cc9f829a0739d0ab0c7310154ad94a15d477b51d85991b5a8a",
"021c798eb224ba23bd91ed7710a85d9b9a6439c29f4f29c1a14b96750a0da36aa7",
"029da09bc04dea33cd11a31bc1c05aa830b9180acb84e5370ee7fde60cae9f3d03");
default:
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ protected List<String> getPubKeyList() {
"026c581ad773d987e6bd10785ac7f7e0e64864aedeb8bce5af37046de812a37854",
"025b058c9f2c60d839669dbfa5578cf5a8117d60e6b70e2f0946f8a691273c6a36");
case XMR_MAINNET:
return List.of();
return List.of(
"02e9dc14edddde19cc9f829a0739d0ab0c7310154ad94a15d477b51d85991b5a8a",
"021c798eb224ba23bd91ed7710a85d9b9a6439c29f4f29c1a14b96750a0da36aa7",
"029da09bc04dea33cd11a31bc1c05aa830b9180acb84e5370ee7fde60cae9f3d03");
default:
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
}
Expand Down
4 changes: 1 addition & 3 deletions core/src/main/java/haveno/core/app/HavenoExecutable.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@
@Slf4j
public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler {

// TODO: regular expression is used to parse application name for the flatpak manifest, a more stable approach would be nice
// Don't edit the next line unless you're only editing in between the quotes.
public static final String DEFAULT_APP_NAME = "Haveno";
public static final String DEFAULT_APP_NAME = "Haveno-reto";

public static final int EXIT_SUCCESS = 0;
public static final int EXIT_FAILURE = 1;
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/java/haveno/core/filter/FilterManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public FilterManager(P2PService p2PService,

publicKeys = useDevPrivilegeKeys ?
Collections.singletonList(DevEnv.DEV_PRIVILEGE_PUB_KEY) :
List.of("0358d47858acdc41910325fce266571540681ef83a0d6fedce312bef9810793a27",
"029340c3e7d4bb0f9e651b5f590b434fecb6175aeaa57145c7804ff05d210e534f",
"034dc7530bf66ffd9580aa98031ea9a18ac2d269f7c56c0e71eca06105b9ed69f9");
List.of("02e9dc14edddde19cc9f829a0739d0ab0c7310154ad94a15d477b51d85991b5a8a",
"021c798eb224ba23bd91ed7710a85d9b9a6439c29f4f29c1a14b96750a0da36aa7",
"029da09bc04dea33cd11a31bc1c05aa830b9180acb84e5370ee7fde60cae9f3d03");

banFilter.setBannedNodePredicate(this::isNodeAddressBannedFromNetwork);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import haveno.core.support.dispute.agent.DisputeAgentManager;
import haveno.core.user.User;
import haveno.network.p2p.storage.payload.ProtectedStorageEntry;
//import java.util.ArrayList;TODO
import java.util.List;
import lombok.extern.slf4j.Slf4j;

Expand Down Expand Up @@ -78,7 +79,10 @@ protected List<String> getPubKeyList() {
"02a1a458df5acf4ab08fdca748e28f33a955a30854c8c1a831ee733dca7f0d2fcd",
"0374dd70f3fa6e47ec5ab97932e1cec6233e98e6ae3129036b17118650c44fd3de");
case XMR_MAINNET:
return List.of();
return List.of(
"029da09bc04dea33cd11a31bc1c05aa830b9180acb84e5370ee7fde60cae9f3d03",
"021c798eb224ba23bd91ed7710a85d9b9a6439c29f4f29c1a14b96750a0da36aa7",
"02e9dc14edddde19cc9f829a0739d0ab0c7310154ad94a15d477b51d85991b5a8a");
default:
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/haveno/core/trade/HavenoUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public class HavenoUtils {

// configure fees
public static final boolean ARBITRATOR_ASSIGNS_TRADE_FEE_ADDRESS = true;
public static final double MAKER_FEE_PCT = 0.0015; // 0.15%
public static final double TAKER_FEE_PCT = 0.0075; // 0.75%
public static final double MAKER_FEE_PCT = 0.005; // 0.5%
public static final double TAKER_FEE_PCT = 0.001; // 0.1%
public static final double PENALTY_FEE_PCT = 0.02; // 2%

// other configuration
Expand Down
10 changes: 9 additions & 1 deletion core/src/main/resources/xmr_mainnet.seednodes
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# nodeaddress.onion:port [(@owner,@backup)]
placeholder.onion:8000 (@placeholder)
k6wctqd5l2nhmietzs6zg4pric3ukeg7lazzz67ttbl75qwfr2q4yvqd.onion:2002(@anon1)
4gmfgn22tll7ajw3tdp7nru3fvgh5ukt7w53kfv5ymijldivsqtbzdqd.onion:2003(@anon1)
bugc27z7lqjgpwmhbuu3kuwoq2bhailj573r32jm5ydwrcqrwjtblnid.onion:1002(@anon2)
xephvvzd3orepnny7lbia4nkwie5t7wjivlvvz5lhbsck7ubavystead.onion:9992(@anon3 ,@s0)
g4z6oi2wf62nwztwve6qe2hqswj4ezpom6hn7cuy5cxaidey4us76bid.onion:9993(@anon3 ,@s0)
z47tltuwytd5icqq4hni2ammvlugp6pcwqboeu7ngawruualxjjuu3ad.onion:9992(@anon3 ,@s3)
hxb5h34hjgyraycrrxlz5ar2q77mjgondzicwzayqwwvuaepssrn5zyd.onion:9993(@anon3 ,@s3)
u6wwec5ddxswwyrz7rgzuiwowf33llab57y3xzmwwxvsofq2w4m6ihad.onion:1002(@anon4)
im6hcl7hknvsrsns2newv4orfv3kd2ly5yvqtbfkiyzoohscyp5htgqd.onion:2002(@anon6)
2 changes: 1 addition & 1 deletion desktop/package/package.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ task packageInstallers {
" --java-options --add-opens=java.base/java.lang.reflect=ALL-UNNAMED" +
" --java-options --add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED" +
" --java-options -Djava.net.preferIPv4Stack=true" +
" --arguments --baseCurrencyNetwork=XMR_STAGENET"
" --arguments --baseCurrencyNetwork=XMR_MAINNET"
// Warning: this will cause guice reflection exceptions and lead to issues with the guice internal cache
// resulting in the UI not loading
// " --java-options -Djdk.module.illegalAccess=deny" +
Expand Down
Binary file modified desktop/src/main/resources/images/logo_splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/logo_splash_testnet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/system_tray_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/system_tray_icon@2x_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/system_tray_icon_linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/system_tray_icon_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/system_tray_icon_windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/task_bar_icon_linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/task_bar_icon_windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/window_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified desktop/src/main/resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae38b2f

Please sign in to comment.