mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-26 12:44:38 +00:00
Fix large balance issues.
This commit is contained in:
committed by
Alex Hart
parent
3554f82ea3
commit
5e8d324860
@@ -257,16 +257,11 @@ public final class LedgerReconcileTest {
|
||||
if (mob.isNegative()) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
MobileCoinLedger.OwnedTXO.Builder builder = new MobileCoinLedger.OwnedTXO.Builder()
|
||||
.receivedInBlock(receivedBlock)
|
||||
.keyImage(keyImage)
|
||||
.publicKey(publicKey);
|
||||
try {
|
||||
builder.amount(Uint64Util.bigIntegerToUInt64(mob.toPicoMobBigInteger()));
|
||||
} catch (Uint64RangeException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
return builder;
|
||||
return new MobileCoinLedger.OwnedTXO.Builder()
|
||||
.amount(ByteString.of(mob.toPicoMobBigInteger().toByteArray()))
|
||||
.receivedInBlock(receivedBlock)
|
||||
.keyImage(keyImage)
|
||||
.publicKey(publicKey);
|
||||
}
|
||||
|
||||
private static Payment payment(String note, Money.MobileCoin valueAndDirection, Set<ByteString> keyImages, Set<ByteString> publicKeys) {
|
||||
|
||||
Reference in New Issue
Block a user