Java Code Examples for org.bitcoinj.core.Coin#COIN

The following examples show how to use org.bitcoinj.core.Coin#COIN . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChannelTestUtils.java    From bcm-android with GNU General Public License v3.0 5 votes vote down vote up
public static RecordingPair makeRecorders(final Wallet serverWallet, final TransactionBroadcaster mockBroadcaster, int maxExpireTime) {
    RecordingPair pair = new RecordingPair();
    pair.serverRecorder = new RecordingServerConnection();
    pair.server = new PaymentChannelServer(mockBroadcaster, serverWallet, Coin.COIN, pair.serverRecorder);
    pair.clientRecorder = new RecordingClientConnection(maxExpireTime);
    return pair;
}
 
Example 2
Source File: ChannelTestUtils.java    From green_android with GNU General Public License v3.0 5 votes vote down vote up
public static RecordingPair makeRecorders(final Wallet serverWallet, final TransactionBroadcaster mockBroadcaster, int maxExpireTime) {
    RecordingPair pair = new RecordingPair();
    pair.serverRecorder = new RecordingServerConnection();
    pair.server = new PaymentChannelServer(mockBroadcaster, serverWallet, Coin.COIN, pair.serverRecorder);
    pair.clientRecorder = new RecordingClientConnection(maxExpireTime);
    return pair;
}
 
Example 3
Source File: ChannelTestUtils.java    From GreenBits with GNU General Public License v3.0 5 votes vote down vote up
public static RecordingPair makeRecorders(final Wallet serverWallet, final TransactionBroadcaster mockBroadcaster, int maxExpireTime) {
    RecordingPair pair = new RecordingPair();
    pair.serverRecorder = new RecordingServerConnection();
    pair.server = new PaymentChannelServer(mockBroadcaster, serverWallet, Coin.COIN, pair.serverRecorder);
    pair.clientRecorder = new RecordingClientConnection(maxExpireTime);
    return pair;
}
 
Example 4
Source File: ExchangeRate.java    From bcm-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Construct exchange rate. One coin is worth this amount of fiat.
 */
public ExchangeRate(Fiat fiat) {
    this(Coin.COIN, fiat);
}
 
Example 5
Source File: AltcoinExchangeRate.java    From bisq-core with GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * Construct exchange rate. One coin is worth this amount of altcoin.
 */
public AltcoinExchangeRate(Altcoin altcoin) {
    this(Coin.COIN, altcoin);
}
 
Example 6
Source File: ExchangeRate.java    From green_android with GNU General Public License v3.0 4 votes vote down vote up
/** Construct exchange rate. One coin is worth this amount of fiat. */
public ExchangeRate(Fiat fiat) {
    this(Coin.COIN, fiat);
}
 
Example 7
Source File: ExchangeRate.java    From GreenBits with GNU General Public License v3.0 4 votes vote down vote up
/** Construct exchange rate. One coin is worth this amount of fiat. */
public ExchangeRate(Fiat fiat) {
    this(Coin.COIN, fiat);
}
 
Example 8
Source File: AltcoinExchangeRate.java    From bisq with GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * Construct exchange rate. One coin is worth this amount of altcoin.
 */
public AltcoinExchangeRate(Altcoin altcoin) {
    this(Coin.COIN, altcoin);
}