mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Remove undefined arithmetics method.
This commit is contained in:
parent
292a180926
commit
ae3acdfefd
@ -118,10 +118,6 @@ public final class Coin implements Comparable<Coin>, Serializable {
|
|||||||
return new Coin(LongMath.checkedSubtract(this.value, value.value));
|
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) {
|
public Coin multiply(final long factor) {
|
||||||
return new Coin(LongMath.checkedMultiply(this.value, factor));
|
return new Coin(LongMath.checkedMultiply(this.value, factor));
|
||||||
}
|
}
|
||||||
|
@ -1276,7 +1276,7 @@ public class FullBlockTestGenerator {
|
|||||||
Block b68 = createNextBlock(b65, chainHeadHeight + 21, null, SATOSHI.multiply(10));
|
Block b68 = createNextBlock(b65, chainHeadHeight + 21, null, SATOSHI.multiply(10));
|
||||||
{
|
{
|
||||||
Transaction tx = new Transaction(params);
|
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);
|
addOnlyInputToTransaction(tx, out20, 0);
|
||||||
b68.addTransaction(tx);
|
b68.addTransaction(tx);
|
||||||
}
|
}
|
||||||
@ -1286,7 +1286,7 @@ public class FullBlockTestGenerator {
|
|||||||
Block b69 = createNextBlock(b65, chainHeadHeight + 21, null, SATOSHI.multiply(10));
|
Block b69 = createNextBlock(b65, chainHeadHeight + 21, null, SATOSHI.multiply(10));
|
||||||
{
|
{
|
||||||
Transaction tx = new Transaction(params);
|
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);
|
addOnlyInputToTransaction(tx, out20, 0);
|
||||||
b69.addTransaction(tx);
|
b69.addTransaction(tx);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user