mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-01 01:32:17 +01:00
Merge pull request #7390 from thecockatiel/remove_unnecessary_coin_wrap
fix: remove unnecessary coin usage
This commit is contained in:
commit
e74d85ee67
1 changed files with 2 additions and 4 deletions
|
@ -21,8 +21,6 @@ import bisq.core.dao.burningman.BurningManPresentationService;
|
||||||
|
|
||||||
import bisq.common.proto.network.NetworkPayload;
|
import bisq.common.proto.network.NetworkPayload;
|
||||||
|
|
||||||
import org.bitcoinj.core.Coin;
|
|
||||||
|
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
@ -70,8 +68,8 @@ public final class AccountingTxOutput implements NetworkPayload {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public protobuf.AccountingTxOutput toProtoMessage() {
|
public protobuf.AccountingTxOutput toProtoMessage() {
|
||||||
checkArgument(value < Coin.valueOf(2147483647).getValue(),
|
checkArgument(value < Integer.MAX_VALUE,
|
||||||
"We only support integer value in protobuf storage for the amount and it need to be below 21.47483647 BTC");
|
"We only support integer values in protobuf storage for the amount.");
|
||||||
return protobuf.AccountingTxOutput.newBuilder()
|
return protobuf.AccountingTxOutput.newBuilder()
|
||||||
.setValue((int) value)
|
.setValue((int) value)
|
||||||
.setName(name).build();
|
.setName(name).build();
|
||||||
|
|
Loading…
Add table
Reference in a new issue