Skip to content

Commit

Permalink
monero: rebase molly/release-v0.18 onto v0.18.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
valldrac committed May 27, 2024
1 parent 30ef8b4 commit b3fb65b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
5 changes: 1 addition & 4 deletions lib/android/src/main/cpp/wallet/wallet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ std::string Wallet::addSubaddressInternal(const cryptonote::subaddress_index& in
std::unique_ptr<PendingTransfer> Wallet::createPayment(
const std::vector<std::string>& addresses,
const std::vector<uint64_t>& amounts,
uint64_t time_lock,
int priority,
uint32_t account_index,
const std::set<uint32_t>& subaddr_indexes) {
Expand Down Expand Up @@ -196,7 +195,6 @@ std::unique_ptr<PendingTransfer> Wallet::createPayment(
auto ptxs = m_wallet.create_transactions_2(
dsts,
m_wallet.get_min_ring_size() - 1,
time_lock,
priority,
{}, /* extra */
account_index,
Expand Down Expand Up @@ -847,7 +845,6 @@ Java_im_molly_monero_WalletNative_nativeCreatePayment(
jlong handle,
jobjectArray j_addresses,
jlongArray j_amounts,
jlong time_lock,
jint priority,
jint account_index,
jintArray j_subaddr_indexes,
Expand All @@ -865,7 +862,7 @@ Java_im_molly_monero_WalletNative_nativeCreatePayment(
pending_transfer = wallet->createPayment(
addresses,
{amounts.begin(), amounts.end()},
time_lock, priority,
priority,
account_index,
{subaddr_indexes.begin(), subaddr_indexes.end()});
// } catch (error::daemon_busy& e) {
Expand Down
3 changes: 1 addition & 2 deletions lib/android/src/main/cpp/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ class Wallet : i_wallet2_callback {
std::unique_ptr<PendingTransfer> createPayment(
const std::vector<std::string>& addresses,
const std::vector<uint64_t>& amounts,
uint64_t time_lock,
int priority,
uint32_t account_index,
const std::set<uint32_t>& subaddr_indexes);
Expand Down Expand Up @@ -175,7 +174,7 @@ class Wallet : i_wallet2_callback {
handleNewBlock(height, block.timestamp);
}

void on_reorg(uint64_t height) override {
void on_reorg(uint64_t height, uint64_t blocks_detached, size_t transfers_detached) override {
handleReorgEvent(height);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ data class PaymentRequest(
val paymentDetails: List<PaymentDetail>,
val spendingAccountIndex: Int,
val feePriority: FeePriority? = null,
val timeLock: UnlockTime? = null,
) : TransferRequest

@Parcelize
Expand All @@ -19,5 +18,4 @@ data class SweepRequest(
val splitCount: Int = 1,
val keyImageHashes: List<HashDigest>,
val feePriority: FeePriority? = null,
val timeLock: UnlockTime? = null,
) : TransferRequest
2 changes: 0 additions & 2 deletions lib/android/src/main/kotlin/im/molly/monero/WalletNative.kt
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ internal class WalletNative private constructor(
handle = handle,
addresses = addresses.toTypedArray(),
amounts = amounts.toLongArray(),
timeLock = request.timeLock?.blockchainTime?.toLong() ?: 0,
priority = request.feePriority?.priority ?: 0,
accountIndex = request.spendingAccountIndex,
subAddressIndexes = IntArray(0),
Expand Down Expand Up @@ -469,7 +468,6 @@ internal class WalletNative private constructor(
handle: Long,
addresses: Array<String>,
amounts: LongArray,
timeLock: Long,
priority: Int,
accountIndex: Int,
subAddressIndexes: IntArray,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data class HttpRequest(
) : Parcelable {

override fun toString(): String =
"HttpRequest(method=$method, path$path, headers=${header?.length}, body=${bodyBytes?.size})"
"HttpRequest(method=$method, path=$path, headers=${header?.length}, body=${bodyBytes?.size})"

override fun equals(other: Any?): Boolean {
if (this === other) return true
Expand Down
2 changes: 1 addition & 1 deletion vendor/monero

0 comments on commit b3fb65b

Please sign in to comment.