Skip to content

Commit

Permalink
Merge branch 'monero-project:master' into p2pool-mining-dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
devhyper authored Oct 3, 2023
2 parents f14508b + bea3032 commit 2be1171
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 24 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Flatpak

on:
push
release:
types: released

jobs:
part1:
name: Part 1/3
if: github.repository == 'monero-project/monero-gui'
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-22.08
Expand Down Expand Up @@ -48,6 +50,7 @@ jobs:

part2:
name: Part 2/3
if: github.repository == 'monero-project/monero-gui'
needs: part1
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -97,6 +100,7 @@ jobs:

part3:
name: Part 3/3
if: github.repository == 'monero-project/monero-gui'
needs: [part1, part2]
runs-on: ubuntu-latest
container:
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ project(monero-gui)
message(STATUS "Initiating compile using CMake ${CMAKE_VERSION}")

set(VERSION_MAJOR "18")
set(VERSION_MINOR "2")
set(VERSION_REVISION "2")
set(VERSION_MINOR "3")
set(VERSION_REVISION "1")
set(VERSION "0.${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}")

option(STATIC "Link libraries statically, requires static Qt")
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ RUN echo y | ${ANDROID_SDK_ROOT}/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} "
ENV HOST_PATH=${PATH}
ENV PATH=${TOOLCHAIN_DIR}/aarch64-linux-android/bin:${TOOLCHAIN_DIR}/bin:${PATH}

ARG ZLIB_VERSION=1.2.13
ARG ZLIB_HASH=b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30
ARG ZLIB_VERSION=1.3
ARG ZLIB_HASH=ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e
RUN wget -q https://zlib.net/zlib-${ZLIB_VERSION}.tar.gz \
&& echo "${ZLIB_HASH} zlib-${ZLIB_VERSION}.tar.gz" | sha256sum -c \
&& tar -xzf zlib-${ZLIB_VERSION}.tar.gz \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ RUN git clone -b xkbcommon-0.5.0 --depth 1 https://github.com/xkbcommon/libxkbco
make -j$THREADS install && \
rm -rf $(pwd)

RUN git clone -b v1.2.11 --depth 1 https://github.com/madler/zlib && \
RUN git clone -b v1.3 --depth 1 https://github.com/madler/zlib && \
cd zlib && \
git reset --hard cacf7f1d4e3d44d871b605da3b647f07d718623f && \
git reset --hard 09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851 && \
./configure --static && \
make -j$THREADS && \
make -j$THREADS install && \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Packaging for your favorite distribution would be a welcome contribution!
```
git clone --branch master --recursive https://github.com/monero-project/monero-gui.git
```
\* `master` - replace with the desired version tag (e.g. `v0.18.2.2`) to build the release binaries.
\* `master` - replace with the desired version tag (e.g. `v0.18.3.1`) to build the release binaries.
3. Prepare build environment
```
cd monero-gui
Expand All @@ -130,7 +130,7 @@ Packaging for your favorite distribution would be a welcome contribution!
```
git clone --branch master --recursive https://github.com/monero-project/monero-gui.git
```
\* `master` - replace with the desired version tag (e.g. `v0.18.2.2`) to build the release binaries.
\* `master` - replace with the desired version tag (e.g. `v0.18.3.1`) to build the release binaries.
3. Prepare build environment
```
cd monero-gui
Expand Down
2 changes: 1 addition & 1 deletion main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ ApplicationWindow {
}

function isTrustedDaemon() {
return !persistentSettings.useRemoteNode || remoteNodesModel.currentRemoteNode().trusted;
return appWindow.walletMode >= 2 && (!persistentSettings.useRemoteNode || remoteNodesModel.currentRemoteNode().trusted);
}

function usefulName(path) {
Expand Down
2 changes: 1 addition & 1 deletion monero
Submodule monero updated 54 files
+1 −1 .github/workflows/build.yml
+5 −5 README.md
+2 −2 contrib/depends/packages/openssl.mk
+1 −0 contrib/epee/include/file_io_utils.h
+1 −4 contrib/epee/include/net/abstract_tcp_server2.inl
+10 −0 contrib/epee/include/span.h
+1 −0 contrib/epee/include/storages/parserse_base_utils.h
+3 −0 contrib/epee/include/storages/portable_storage_from_bin.h
+3 −0 contrib/epee/include/storages/portable_storage_from_json.h
+8 −5 contrib/epee/src/net_ssl.cpp
+1 −1 contrib/gitian/DOCKRUN.md
+1 −1 contrib/gitian/README.md
+ src/blocks/checkpoints.dat
+2 −0 src/checkpoints/checkpoints.cpp
+1 −0 src/common/combinator.h
+1 −1 src/common/perf_timer.cpp
+15 −20 src/common/util.cpp
+1 −1 src/cryptonote_basic/cryptonote_format_utils.cpp
+8 −1 src/cryptonote_basic/miner.cpp
+5 −36 src/cryptonote_core/blockchain.cpp
+10 −0 src/cryptonote_core/cryptonote_core.cpp
+17 −0 src/cryptonote_core/cryptonote_core.h
+235 −23 src/cryptonote_core/tx_pool.cpp
+38 −1 src/cryptonote_core/tx_pool.h
+10 −0 src/cryptonote_protocol/cryptonote_protocol_handler.inl
+13 −0 src/daemon/main.cpp
+152 −87 src/rpc/core_rpc_server.cpp
+51 −1 src/rpc/core_rpc_server_commands_defs.h
+26 −0 src/serialization/json_object.cpp
+3 −0 src/serialization/json_object.h
+7 −3 src/simplewallet/simplewallet.cpp
+1 −1 src/version.cpp.in
+6 −2 src/wallet/api/wallet.cpp
+1 −0 src/wallet/api/wallet2_api.h
+52 −0 src/wallet/node_rpc_proxy.cpp
+2 −0 src/wallet/node_rpc_proxy.h
+842 −281 src/wallet/wallet2.cpp
+65 −16 src/wallet/wallet2.h
+19 −0 src/wallet/wallet_errors.h
+49 −8 src/wallet/wallet_rpc_server.cpp
+61 −157 src/wallet/wallet_rpc_server_commands_defs.h
+2 −8 tests/CMakeLists.txt
+1 −1 tests/README.md
+ tests/data/wallet_00fd416a
+ tests/data/wallet_00fd416a.keys
+2 −2 tests/functional_tests/CMakeLists.txt
+10 −0 tests/functional_tests/mining.py
+236 −37 tests/functional_tests/multisig.py
+221 −5 tests/functional_tests/transfer.py
+2 −0 tests/unit_tests/CMakeLists.txt
+35 −0 tests/unit_tests/long_term_block_weight.cpp
+50 −0 tests/unit_tests/util.cpp
+266 −0 tests/unit_tests/wallet_storage.cpp
+2 −1 utils/python-rpc/framework/wallet.py
12 changes: 11 additions & 1 deletion pages/settings/SettingsWallet.qml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,19 @@ Rectangle {
inputDialog.onAcceptedCallback = function() {
var txid = inputDialog.inputText.trim();
if (currentWallet.scanTransactions([txid])) {
updateBalance();
appWindow.showStatusMessage(qsTr("Transaction successfully scanned"), 3);
} else {
appWindow.showStatusMessage(qsTr("Failed to scan transaction") + ": " + currentWallet.errorString, 5);
console.error("Error: ", currentWallet.errorString);
if (currentWallet.errorString == "The wallet has already seen 1 or more recent transactions than the scanned tx") {
informationPopup.title = qsTr("Error") + translationManager.emptyString;
informationPopup.text = qsTr("The wallet has already seen 1 or more recent transactions than the scanned transaction.\n\nIn order to rescan the transaction, you can re-sync your wallet by resetting the wallet restore height in the Settings > Info page. Make sure to use a restore height from before your wallet's earliest transaction.") + translationManager.emptyString;
informationPopup.icon = StandardIcon.Critical
informationPopup.onCloseCallback = null
informationPopup.open();
} else {
appWindow.showStatusMessage(qsTr("Failed to scan transaction") + ": " + currentWallet.errorString, 5);
}
}
}
inputDialog.onRejectedCallback = null;
Expand Down
24 changes: 12 additions & 12 deletions src/p2pool/P2PoolManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ void P2PoolManager::download() {
QString fileName;
QString validHash;
#ifdef Q_OS_WIN
url = "https://github.com/SChernykh/p2pool/releases/download/v3.6.2/p2pool-v3.6.2-windows-x64.zip";
fileName = m_p2poolPath + "/p2pool-v3.6.2-windows-x64.zip";
validHash = "ec8247a2ea923f8a2a15545e2431df70c136d584b8d57affd0fd8b0ee20c3940";
url = "https://github.com/SChernykh/p2pool/releases/download/v3.7/p2pool-v3.7-windows-x64.zip";
fileName = m_p2poolPath + "/p2pool-v3.7-windows-x64.zip";
validHash = "9888afb51a206f1d2c6efc414dd1f498f82de58c689fbb73aceecd88ecdf6c43";
#elif defined(Q_OS_LINUX)
url = "https://github.com/SChernykh/p2pool/releases/download/v3.6.2/p2pool-v3.6.2-linux-x64.tar.gz";
fileName = m_p2poolPath + "/p2pool-v3.6.2-linux-x64.tar.gz";
validHash = "2f8fd698321923a3ecc6a055d01fcdcbeae1262debe4e198a2715f8b55f45308";
url = "https://github.com/SChernykh/p2pool/releases/download/v3.7/p2pool-v3.7-linux-x64.tar.gz";
fileName = m_p2poolPath + "/p2pool-v3.7-linux-x64.tar.gz";
validHash = "d5b932053f56f85b119450e64b1a7765c632f16c6226c8762b00e48f50e7e421";
#elif defined(Q_OS_MACOS_AARCH64)
url = "https://github.com/SChernykh/p2pool/releases/download/v3.6.2/p2pool-v3.6.2-macos-aarch64.tar.gz";
fileName = m_p2poolPath + "/p2pool-v3.6.2-macos-aarch64.tar.gz";
validHash = "0039b64c99300f07b65ce331ed5636bf52bf435cf73f6164b768dd9e07c0f5a5";
url = "https://github.com/SChernykh/p2pool/releases/download/v3.7/p2pool-v3.7-macos-aarch64.tar.gz";
fileName = m_p2poolPath + "/p2pool-v3.7-macos-aarch64.tar.gz";
validHash = "d2b483a10c01f4a84faacbb8e2eedafef451ca4e6a4128e44800018556bb2c62";
#elif defined(Q_OS_MACOS)
url = "https://github.com/SChernykh/p2pool/releases/download/v3.6.2/p2pool-v3.6.2-macos-x64.tar.gz";
fileName = m_p2poolPath + "/p2pool-v3.6.2-macos-x64.tar.gz";
validHash = "0bc70646ec296dbb6f0fbb8ee16f961c432e378f12ba5ee38df40b563be4e2f7";
url = "https://github.com/SChernykh/p2pool/releases/download/v3.7/p2pool-v3.7-macos-x64.tar.gz";
fileName = m_p2poolPath + "/p2pool-v3.7-macos-x64.tar.gz";
validHash = "444ded858b18a9ecba7d08a2d333188d1758a3da358817887d28d0827dc4287b";
#endif
QFile file(fileName);
epee::net_utils::http::http_simple_client http_client;
Expand Down

0 comments on commit 2be1171

Please sign in to comment.