3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Remove undefined arithmetics method.

This commit is contained in:
Andreas Schildbach 2014-06-20 14:57:55 +02:00
parent 292a180926
commit ae3acdfefd
2 changed files with 2 additions and 6 deletions

View File

@ -118,10 +118,6 @@ public final class Coin implements Comparable<Coin>, Serializable {
return new Coin(LongMath.checkedSubtract(this.value, value.value));
}
public Coin subtract(final long value) {
return new Coin(LongMath.checkedSubtract(this.value, value));
}
public Coin multiply(final long factor) {
return new Coin(LongMath.checkedMultiply(this.value, factor));
}

View File

@ -1276,7 +1276,7 @@ public class FullBlockTestGenerator {
Block b68 = createNextBlock(b65, chainHeadHeight + 21, null, SATOSHI.multiply(10));
{
Transaction tx = new Transaction(params);
tx.addOutput(out20.value.subtract(9), OP_TRUE_SCRIPT);
tx.addOutput(out20.value.subtract(Coin.valueOf(9)), OP_TRUE_SCRIPT);
addOnlyInputToTransaction(tx, out20, 0);
b68.addTransaction(tx);
}
@ -1286,7 +1286,7 @@ public class FullBlockTestGenerator {
Block b69 = createNextBlock(b65, chainHeadHeight + 21, null, SATOSHI.multiply(10));
{
Transaction tx = new Transaction(params);
tx.addOutput(out20.value.subtract(10), OP_TRUE_SCRIPT);
tx.addOutput(out20.value.subtract(Coin.valueOf(10)), OP_TRUE_SCRIPT);
addOnlyInputToTransaction(tx, out20, 0);
b69.addTransaction(tx);
}