ledger changes (#41)
* ledger changes * minor fix * Implement monero queryWalletDevice * update checksums * Remove ledger_flutter_plus dependency --------- Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 6b40191d35df998280e1d6e19ff9bf4bce54d5bf Mon Sep 17 00:00:00 2001
|
||||
From 77f328ba6befb9b964f764a27f8a03b71bf9095d Mon Sep 17 00:00:00 2001
|
||||
From: Czarek Nakamoto <cyjan@mrcyjanek.net>
|
||||
Date: Wed, 26 Jun 2024 15:04:38 +0200
|
||||
Subject: [PATCH 16/16] add dummy device for ledger
|
||||
@@ -12,10 +12,10 @@ Subject: [PATCH 16/16] add dummy device for ledger
|
||||
src/device/device_io_dummy.hpp | 74 ++++++++++++++++++
|
||||
src/device/device_ledger.cpp | 6 +-
|
||||
src/device/device_ledger.hpp | 7 +-
|
||||
src/wallet/api/wallet.cpp | 93 +++++++++++++++++++++++
|
||||
src/wallet/api/wallet.cpp | 94 +++++++++++++++++++++++
|
||||
src/wallet/api/wallet.h | 18 +++++
|
||||
src/wallet/api/wallet2_api.h | 12 +++
|
||||
11 files changed, 356 insertions(+), 21 deletions(-)
|
||||
11 files changed, 357 insertions(+), 21 deletions(-)
|
||||
create mode 100644 src/device/device_io_dummy.cpp
|
||||
create mode 100644 src/device/device_io_dummy.hpp
|
||||
|
||||
@@ -414,7 +414,7 @@ index 03058c4f1..506f27c4a 100644
|
||||
unsigned char buffer_send[BUFFER_SEND_SIZE];
|
||||
unsigned int length_recv;
|
||||
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
|
||||
index a307d35a7..3ead385ec 100644
|
||||
index 8bdd75a5a..09f91c5e2 100644
|
||||
--- a/src/wallet/api/wallet.cpp
|
||||
+++ b/src/wallet/api/wallet.cpp
|
||||
@@ -49,6 +49,9 @@
|
||||
@@ -427,7 +427,7 @@ index a307d35a7..3ead385ec 100644
|
||||
|
||||
using namespace std;
|
||||
using namespace cryptonote;
|
||||
@@ -3298,4 +3301,94 @@ uint64_t WalletImpl::getBytesSent()
|
||||
@@ -3299,4 +3302,95 @@ uint64_t WalletImpl::getBytesSent()
|
||||
return m_wallet->get_bytes_sent();
|
||||
}
|
||||
|
||||
@@ -502,6 +502,7 @@ index a307d35a7..3ead385ec 100644
|
||||
+ return;
|
||||
+ #else
|
||||
+ hw::io::device_io_dummy::receivedFromDevice = static_cast<unsigned char *>(malloc(len));
|
||||
+ hw::io::device_io_dummy::receivedFromDeviceLength = len;
|
||||
+ memset(hw::io::device_io_dummy::receivedFromDevice, 0, len);
|
||||
+ memcpy(hw::io::device_io_dummy::receivedFromDevice, data, len);
|
||||
+ hw::io::device_io_dummy::waitsForDeviceReceive = false;
|
||||
@@ -575,5 +576,5 @@ index 2bbb32c8b..c8d6bb179 100644
|
||||
|
||||
/**
|
||||
--
|
||||
2.39.2
|
||||
2.45.1.windows.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user