mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-13 12:02:23 -04:00
Add testnet and main net fee addresses
This commit is contained in:
parent
32d482eb22
commit
4d33eeb738
1 changed files with 20 additions and 2 deletions
|
@ -22,6 +22,9 @@ import org.bitcoinj.core.AddressFormatException;
|
||||||
import org.bitcoinj.core.Coin;
|
import org.bitcoinj.core.Coin;
|
||||||
import org.bitcoinj.core.NetworkParameters;
|
import org.bitcoinj.core.NetworkParameters;
|
||||||
import org.bitcoinj.core.Transaction;
|
import org.bitcoinj.core.Transaction;
|
||||||
|
import org.bitcoinj.params.MainNetParams;
|
||||||
|
import org.bitcoinj.params.RegTestParams;
|
||||||
|
import org.bitcoinj.params.TestNet3Params;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
|
@ -46,14 +49,29 @@ public class FeePolicy {
|
||||||
// Not used at the moment
|
// Not used at the moment
|
||||||
// private static final String registrationFeeAddress = "mvkDXt4QmN4Nq9dRUsRigBCaovde9nLkZR";
|
// private static final String registrationFeeAddress = "mvkDXt4QmN4Nq9dRUsRigBCaovde9nLkZR";
|
||||||
|
|
||||||
private static final String createOfferFeeAddress = "n2upbsaKAe4PD3cc4JfS7UCqPC5oNd7Ckg";
|
//
|
||||||
private static final String takeOfferFeeAddress = "n2upbsaKAe4PD3cc4JfS7UCqPC5oNd7Ckg";
|
private static String createOfferFeeAddress;
|
||||||
|
private static String takeOfferFeeAddress;
|
||||||
|
|
||||||
private final NetworkParameters params;
|
private final NetworkParameters params;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public FeePolicy(NetworkParameters params) {
|
public FeePolicy(NetworkParameters params) {
|
||||||
this.params = params;
|
this.params = params;
|
||||||
|
|
||||||
|
if (params.equals(TestNet3Params.get())) {
|
||||||
|
createOfferFeeAddress = "n3LLZ9ngKdxms3gCbHhNPibHTh7DmHigtE";
|
||||||
|
takeOfferFeeAddress = "n3LLZ9ngKdxms3gCbHhNPibHTh7DmHigtE";
|
||||||
|
}
|
||||||
|
else if (params.equals(MainNetParams.get())) {
|
||||||
|
// bitsquare donation address used for the moment...
|
||||||
|
createOfferFeeAddress = "1BVxNn3T12veSK6DgqwU4Hdn7QHcDDRag7";
|
||||||
|
takeOfferFeeAddress = "1BVxNn3T12veSK6DgqwU4Hdn7QHcDDRag7";
|
||||||
|
}
|
||||||
|
else if (params.equals(RegTestParams.get())) {
|
||||||
|
createOfferFeeAddress = "n2upbsaKAe4PD3cc4JfS7UCqPC5oNd7Ckg";
|
||||||
|
takeOfferFeeAddress = "n2upbsaKAe4PD3cc4JfS7UCqPC5oNd7Ckg";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO who is receiver? other users or dev address? use donation option list?
|
//TODO who is receiver? other users or dev address? use donation option list?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue