Compare commits

...

1 Commits

Author SHA1 Message Date
woodser
cc1c3bcaf3 mark mainnet placeholders 2024-03-12 07:25:40 -04:00
6 changed files with 7 additions and 6 deletions

View File

@ -95,7 +95,7 @@ public class AlertManager {
} }
pubKeyAsHex = useDevPrivilegeKeys ? pubKeyAsHex = useDevPrivilegeKeys ?
DevEnv.DEV_PRIVILEGE_PUB_KEY : DevEnv.DEV_PRIVILEGE_PUB_KEY :
"036d8a1dfcb406886037d2381da006358722823e1940acc2598c844bbc0fd1026f"; "036d8a1dfcb406886037d2381da006358722823e1940acc2598c844bbc0fd1026f"; // TODO: replace with mainnet pub key for alerts
} }

View File

@ -95,7 +95,7 @@ public class PrivateNotificationManager implements MessageListener {
} }
pubKeyAsHex = useDevPrivilegeKeys ? pubKeyAsHex = useDevPrivilegeKeys ?
DevEnv.DEV_PRIVILEGE_PUB_KEY : DevEnv.DEV_PRIVILEGE_PUB_KEY :
"02ba7c5de295adfe57b60029f3637a2c6b1d0e969a8aaefb9e0ddc3a7963f26925"; "02ba7c5de295adfe57b60029f3637a2c6b1d0e969a8aaefb9e0ddc3a7963f26925"; // TODO: replace with mainnet dev pub key for private messages
} }
private void handleMessage(DecryptedMessageWithPubKey decryptedMessageWithPubKey, NodeAddress senderNodeAddress) { private void handleMessage(DecryptedMessageWithPubKey decryptedMessageWithPubKey, NodeAddress senderNodeAddress) {

View File

@ -116,7 +116,7 @@ public class FilterManager {
publicKeys = useDevPrivilegeKeys ? publicKeys = useDevPrivilegeKeys ?
Collections.singletonList(DevEnv.DEV_PRIVILEGE_PUB_KEY) : Collections.singletonList(DevEnv.DEV_PRIVILEGE_PUB_KEY) :
List.of("0358d47858acdc41910325fce266571540681ef83a0d6fedce312bef9810793a27", List.of("0358d47858acdc41910325fce266571540681ef83a0d6fedce312bef9810793a27", // TODO: replace with mainnet dev pub keys
"029340c3e7d4bb0f9e651b5f590b434fecb6175aeaa57145c7804ff05d210e534f", "029340c3e7d4bb0f9e651b5f590b434fecb6175aeaa57145c7804ff05d210e534f",
"034dc7530bf66ffd9580aa98031ea9a18ac2d269f7c56c0e71eca06105b9ed69f9"); "034dc7530bf66ffd9580aa98031ea9a18ac2d269f7c56c0e71eca06105b9ed69f9");

View File

@ -79,7 +79,7 @@ public class ArbitratorManager extends DisputeAgentManager<Arbitrator> {
"02a1a458df5acf4ab08fdca748e28f33a955a30854c8c1a831ee733dca7f0d2fcd", "02a1a458df5acf4ab08fdca748e28f33a955a30854c8c1a831ee733dca7f0d2fcd",
"0374dd70f3fa6e47ec5ab97932e1cec6233e98e6ae3129036b17118650c44fd3de"); "0374dd70f3fa6e47ec5ab97932e1cec6233e98e6ae3129036b17118650c44fd3de");
case XMR_MAINNET: case XMR_MAINNET:
return new ArrayList<String>(); return new ArrayList<String>(); // TODO: add mainnet arbitrator pubkeys
default: default:
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork()); throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
} }

View File

@ -63,6 +63,7 @@ import org.bitcoinj.core.Coin;
public class HavenoUtils { public class HavenoUtils {
// configurable // configurable
// TODO: adjust for mainnet release
private static final String RELEASE_DATE = "01-03-2024 00:00:00"; // optionally set to release date of the network in format dd-mm-yyyy to impose temporary limits, etc. e.g. "01-03-2024 00:00:00" private static final String RELEASE_DATE = "01-03-2024 00:00:00"; // optionally set to release date of the network in format dd-mm-yyyy to impose temporary limits, etc. e.g. "01-03-2024 00:00:00"
public static final int RELEASE_LIMIT_DAYS = 60; // number of days to limit sell offers to max buy limit for new accounts public static final int RELEASE_LIMIT_DAYS = 60; // number of days to limit sell offers to max buy limit for new accounts
public static final int WARN_ON_OFFER_EXCEEDS_UNSIGNED_BUY_LIMIT_DAYS = 182; // number of days to warn if sell offer exceeds unsigned buy limit public static final int WARN_ON_OFFER_EXCEEDS_UNSIGNED_BUY_LIMIT_DAYS = 182; // number of days to warn if sell offer exceeds unsigned buy limit
@ -453,7 +454,7 @@ public class HavenoUtils {
case XMR_STAGENET: case XMR_STAGENET:
return "5B11hTJdG2XDNwjdKGLRxwSLwDhkbGg7C7UEAZBxjE6FbCeRMjudrpNACmDNtWPiSnNfjDQf39QRjdtdgoL69txv81qc2Mc"; return "5B11hTJdG2XDNwjdKGLRxwSLwDhkbGg7C7UEAZBxjE6FbCeRMjudrpNACmDNtWPiSnNfjDQf39QRjdtdgoL69txv81qc2Mc";
case XMR_MAINNET: case XMR_MAINNET:
throw new RuntimeException("Mainnet fee address not implemented"); throw new RuntimeException("Mainnet fee address not implemented"); // TODO: replace with mainnet trade fee address
default: default:
throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork()); throw new RuntimeException("Unhandled base currency network: " + Config.baseCurrencyNetwork());
} }

View File

@ -1,2 +1,2 @@
# nodeaddress.onion:port [(@owner,@backup)] # nodeaddress.onion:port [(@owner,@backup)] (add mainnet seed addresses)
placeholder.onion:8000 (@placeholder) placeholder.onion:8000 (@placeholder)