Skip to content

Commit

Permalink
Merge pull request #40 from marmarachain/development
Browse files Browse the repository at this point in the history
workflow update
  • Loading branch information
Aklix committed Jun 17, 2023
2 parents bdd0d5e + 514949b commit c675fcb
Show file tree
Hide file tree
Showing 22 changed files with 348 additions and 101 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/komodo_linux_ci.yml
Expand Up @@ -10,7 +10,7 @@ jobs:

linux-build:
name: Linux Build
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand All @@ -21,7 +21,7 @@ jobs:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update # prevents repo404 errors on apt-remove below
sudo apt-get remove php5.6-fpm php7.0-fpm php7.1-fpm php7.2-fpm php7.3-fpm php7.3-common php7.4-fpm msodbcsql17 mysql-server*
sudo apt-get remove php* msodbcsql17 mysql* powershell dotn*
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get upgrade -y
sudo apt-get install -q \
Expand All @@ -32,6 +32,8 @@ jobs:
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
python3 -m pip install setuptools wheel
python3 -m pip install slick-bitcoinrpc pytest wget jsonschema
- name: Build (Linux)
run: |
# flag for some CC tests transactions - so DO NOT USE THIS CI ARTIFACTS IN PRODUCTION!!!
Expand Down Expand Up @@ -81,7 +83,7 @@ jobs:
linux-test-oracles:

name: Test (Linux/OraclesCC)
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
linux-test-baserpc:

name: Test (Linux/BasicRPC)
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -151,7 +153,7 @@ jobs:
linux-test-channels:

name: Test (Linux/ChannelsCC)
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/komodo_win_ci.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
windows-build:

name: Win Build
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand All @@ -20,7 +20,7 @@ jobs:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update # prevents repo404 errors on apt-remove below
sudo apt-get remove php5.6-fpm php7.0-fpm php7.1-fpm php7.2-fpm php7.3-fpm php7.3-common php7.4-fpm msodbcsql17
sudo apt-get remove php* msodbcsql17 mysql* powershell containernetworking-* containers* dotn*
sudo ACCEPT_EULA=Y apt-get upgrade -y
sudo apt-get update
sudo apt-get install build-essential \
Expand All @@ -32,7 +32,7 @@ jobs:
libncurses-dev \
unzip \
git \
python \
python3 \
zlib1g-dev \
wget \
bsdmainutils \
Expand All @@ -53,7 +53,7 @@ jobs:
cmake \
clang \
libsodium-dev \
python-zmq \
python3-zmq \
mingw-w64 -y
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
Expand Down Expand Up @@ -92,12 +92,9 @@ jobs:
move komodod_win\komodod_win.zip
7z e komodod_win.zip
move komodod.exe src\
vcpkg install curl openssl
python.exe -m pip install --upgrade setuptools
python.exe -m pip install --upgrade pip
python.exe -m pip install wheel
python.exe -m pip install pycurl==7.43.0.5
python.exe -m pip install pytest wget jsonschema
python.exe -m pip install pycurl pytest wget jsonschema
python.exe -m pip install slick-bitcoinrpc
zcutil\fetch-params.bat
- name: Base RPC Test (Windows)
Expand Down Expand Up @@ -158,12 +155,9 @@ jobs:
move komodod_win\komodod_win.zip
7z e komodod_win.zip
move komodod.exe src\
vcpkg install curl openssl
python.exe -m pip install --upgrade setuptools
python.exe -m pip install --upgrade pip
python.exe -m pip install wheel
python.exe -m pip install pycurl==7.43.0.5
python.exe -m pip install pytest wget jsonschema
python.exe -m pip install pycurl pytest wget jsonschema
python.exe -m pip install slick-bitcoinrpc
zcutil\fetch-params.bat
- name: CC Oracles (Windows)
Expand Down
8 changes: 4 additions & 4 deletions configure.ac
@@ -1,13 +1,13 @@
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 3)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_REVISION, 3)
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 1)
define(_CLIENT_VERSION_REVISION, 8)
define(_CLIENT_VERSION_BUILD, 0)
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2018)
define(_COPYRIGHT_YEAR, 2023)
AC_INIT([Verus-CLI],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_SUFFIX(_ZC_BUILD_VAL)],[https://github.com/VerusCoin/VerusCoin/issues],[verus-cli])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
Expand Down
5 changes: 4 additions & 1 deletion depends/packages/boost.mk
Expand Up @@ -4,6 +4,7 @@ $(package)_version=1_72_0
$(package)_download_path=https://github.com/KomodoPlatform/boost/releases/download/boost-1.72.0-kmd
$(package)_sha256_hash=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722
$(package)_file_name=$(package)_$($(package)_version).tar.bz2
$(package)_patches=commit-74fb0a2.patch commit-f9d0e59.patch

define $(package)_set_vars
$(package)_config_opts_release=variant=release
Expand All @@ -21,12 +22,14 @@ $(package)_archiver_$(host_os)=$($(package)_ar)
$(package)_toolset_darwin=gcc
$(package)_archiver_darwin=$($(package)_ar)
$(package)_config_libraries=chrono,filesystem,program_options,system,thread,test
$(package)_cxxflags=-std=c++11 -fvisibility=hidden
$(package)_cxxflags+=-std=c++11 -fvisibility=hidden
$(package)_cxxflags_linux=-fPIC
endef


define $(package)_preprocess_cmds
patch -p2 -i $($(package)_patch_dir)/commit-74fb0a2.patch && \
patch -p2 -i $($(package)_patch_dir)/commit-f9d0e59.patch && \
echo "using $(boost_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$(boost_archiver_$(host_os))\" <striper>\"$(host_STRIP)\" <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;" > user-config.jam
endef

Expand Down
2 changes: 1 addition & 1 deletion depends/packages/libgmp.mk
Expand Up @@ -22,7 +22,7 @@ $(package)_download_path=https://github.com/KomodoPlatform/libgmp/releases/downl
$(package)_file_name=gmp-$($(package)_version).tar.bz2
$(package)_sha256_hash=a8109865f2893f1373b0a8ed5ff7429de8db696fc451b1036bd7bdf95bbeffd6
$(package)_dependencies=
$(package)_config_opts=--enable-cxx --disable-shared
$(package)_config_opts=--enable-cxx --disable-shared --with-pic
endif

define $(package)_config_cmds
Expand Down
4 changes: 2 additions & 2 deletions depends/packages/rust.mk
Expand Up @@ -41,12 +41,12 @@ define $(package)_extract_cmds
endef

define $(package)_stage_cmds
./install.sh --destdir=$($(package)_staging_dir) --prefix=$(host_prefix)/native --disable-ldconfig && \
./install.sh --destdir=$($(package)_staging_dir) --prefix=$(host_prefix)/native --disable-ldconfig --without=rust-docs && \
cp -r ../mingw32/rust-std-x86_64-pc-windows-gnu/lib/rustlib/x86_64-pc-windows-gnu $($(package)_staging_dir)$(host_prefix)/native/lib/rustlib
endef
else

define $(package)_stage_cmds
./install.sh --destdir=$($(package)_staging_dir) --prefix=$(host_prefix)/native --disable-ldconfig
./install.sh --destdir=$($(package)_staging_dir) --prefix=$(host_prefix)/native --disable-ldconfig --without=rust-docs
endef
endif
19 changes: 19 additions & 0 deletions depends/patches/boost/commit-74fb0a2.patch
@@ -0,0 +1,19 @@
From 74fb0a26099bc51d717f5f154b37231ce7df3e98 Mon Sep 17 00:00:00 2001
From: Rob Boehne <robb@datalogics.com>
Date: Wed, 20 Nov 2019 11:25:20 -0600
Subject: Revert change to elide a warning that caused Solaris builds to fail.


diff --git a/include/boost/thread/pthread/thread_data.hpp b/include/boost/thread/pthread/thread_data.hpp
index aefbeb43..bc9b1367 100644
--- a/include/boost/thread/pthread/thread_data.hpp
+++ b/include/boost/thread/pthread/thread_data.hpp
@@ -57,7 +57,7 @@ namespace boost
#else
std::size_t page_size = ::sysconf( _SC_PAGESIZE);
#endif
-#if PTHREAD_STACK_MIN > 0
+#ifdef PTHREAD_STACK_MIN
if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
#endif
size = ((size+page_size-1)/page_size)*page_size;
26 changes: 26 additions & 0 deletions depends/patches/boost/commit-f9d0e59.patch
@@ -0,0 +1,26 @@
From f9d0e594d43afcb4ab0043117249feb266ba4515 Mon Sep 17 00:00:00 2001
From: Romain Geissler <romain.geissler@amadeus.com>
Date: Tue, 10 Aug 2021 14:22:28 +0000
Subject: Fix -Wsign-compare warning with glibc 2.34 on Linux platforms.

In file included from /data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/thread_only.hpp:17,
from /data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/thread.hpp:12,
from src/GetTest.cpp:12:
/data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/pthread/thread_data.hpp: In member function 'void boost::thread_attributes::set_stack_size(std::size_t)':
/data/mwrep/res/osp/Boost/21-0-0-0/include/boost/thread/pthread/thread_data.hpp:61:19: error: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'long int' [-Werror=sign-compare]
61 | if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
| ^

diff --git a/include/boost/thread/pthread/thread_data.hpp b/include/boost/thread/pthread/thread_data.hpp
index bc9b1367..c43b276d 100644
--- a/include/boost/thread/pthread/thread_data.hpp
+++ b/include/boost/thread/pthread/thread_data.hpp
@@ -58,7 +58,7 @@ namespace boost
std::size_t page_size = ::sysconf( _SC_PAGESIZE);
#endif
#ifdef PTHREAD_STACK_MIN
- if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
+ if (size<static_cast<std::size_t>(PTHREAD_STACK_MIN)) size=PTHREAD_STACK_MIN;
#endif
size = ((size+page_size-1)/page_size)*page_size;
int res = pthread_attr_setstacksize(&val_, size);
46 changes: 46 additions & 0 deletions src/chain.cpp
@@ -1,5 +1,6 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017-2022 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand All @@ -20,6 +21,9 @@

#include "chain.h"

#include "main.h"
#include "txdb.h"

using namespace std;

/**
Expand Down Expand Up @@ -76,6 +80,48 @@ const CBlockIndex *CChain::FindFork(const CBlockIndex *pindex) const {
return pindex;
}

void CBlockIndex::TrimSolution()
{
AssertLockHeld(cs_main);

// We can correctly trim a solution as soon as the block index entry has been added
// to leveldb. Updates to the block index entry (to update validity status) will be
// handled by re-reading the solution from the existing db entry. It does not help to
// try to avoid these reads by gating trimming on the validity status: the re-reads are
// efficient anyway because of caching in leveldb, and most of them are unavoidable.
if (HasSolution()) {
std::vector<unsigned char> empty;
nSolution.swap(empty);
}
}

CBlockHeader CBlockIndex::GetBlockHeader() const
{
AssertLockHeld(cs_main);

CBlockHeader header;
header.nVersion = nVersion;
if (pprev) {
header.hashPrevBlock = pprev->GetBlockHash();
}
header.hashMerkleRoot = hashMerkleRoot;
header.hashFinalSaplingRoot = hashFinalSaplingRoot;
header.nTime = nTime;
header.nBits = nBits;
header.nNonce = nNonce;
if (HasSolution()) {
header.nSolution = nSolution;
} else {
CDiskBlockIndex dbindex;
if (!pblocktree->ReadDiskBlockIndex(GetBlockHash(), dbindex)) {
LogPrintf("%s: Failed to read index entry", __func__);
throw std::runtime_error("Failed to read index entry");
}
header.nSolution = dbindex.GetSolution();
}
return header;
}

CChainPower::CChainPower(CBlockIndex *pblockIndex)
{
nHeight = pblockIndex->GetHeight();
Expand Down

0 comments on commit c675fcb

Please sign in to comment.