mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-12 19:42:15 -04:00
Apply formatting to Java sources
This is essentially the default IDEA formatting settings, with one tweak made to allow same-line field annotations (useful particularly in the case of the @FXML annotation)
This commit is contained in:
parent
9c3df7375a
commit
7d6ca37d06
168 changed files with 3005 additions and 5439 deletions
|
@ -18,12 +18,13 @@
|
|||
package io.bitsquare.btc;
|
||||
|
||||
import com.google.bitcoin.core.*;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class FeePolicy
|
||||
{
|
||||
public class FeePolicy {
|
||||
public static final Coin TX_FEE = Transaction.REFERENCE_DEFAULT_MIN_TX_FEE;
|
||||
public static final Coin ACCOUNT_REGISTRATION_FEE = Coin.CENT; // 0.01
|
||||
public static final Coin CREATE_OFFER_FEE = Coin.MILLICOIN; // 0.001
|
||||
|
@ -36,20 +37,16 @@ public class FeePolicy
|
|||
private final NetworkParameters params;
|
||||
|
||||
@Inject
|
||||
public FeePolicy(NetworkParameters params)
|
||||
{
|
||||
public FeePolicy(NetworkParameters params) {
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
//TODO other users or dev address? use donation option list? (dev, other users, wikileaks, tor, sub projects (bitcoinj, tomp2p,...)...)
|
||||
|
||||
public Address getAddressForRegistrationFee()
|
||||
{
|
||||
try
|
||||
{
|
||||
public Address getAddressForRegistrationFee() {
|
||||
try {
|
||||
return new Address(params, registrationFeeAddress);
|
||||
} catch (AddressFormatException e)
|
||||
{
|
||||
} catch (AddressFormatException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
|
@ -57,13 +54,10 @@ public class FeePolicy
|
|||
|
||||
//TODO get address form arbitrator list
|
||||
|
||||
public Address getAddressForCreateOfferFee()
|
||||
{
|
||||
try
|
||||
{
|
||||
public Address getAddressForCreateOfferFee() {
|
||||
try {
|
||||
return new Address(params, createOfferFeeAddress);
|
||||
} catch (AddressFormatException e)
|
||||
{
|
||||
} catch (AddressFormatException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
|
@ -71,13 +65,10 @@ public class FeePolicy
|
|||
|
||||
//TODO get address form the intersection of both traders arbitrator lists
|
||||
|
||||
public Address getAddressForTakeOfferFee()
|
||||
{
|
||||
try
|
||||
{
|
||||
public Address getAddressForTakeOfferFee() {
|
||||
try {
|
||||
return new Address(params, takeOfferFeeAddress);
|
||||
} catch (AddressFormatException e)
|
||||
{
|
||||
} catch (AddressFormatException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue