Skip to content

Commit 5542f22

Browse files
authoredNov 29, 2021
Merge pull request jl777#370 from VerusCoin/dev
Dev
2 parents d0aecf8 + 1163b50 commit 5542f22

22 files changed

+2026
-550
lines changed
 

‎.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stages:
77
########################################################################################################################
88
variables:
99

10-
VERSION: 0.9.0-1
10+
VERSION: 0.9.0-2
1111

1212
VERUS_CLI_ARM64_LINUX: Verus-CLI-Linux-v${VERSION}-arm64.tar.gz
1313
VERUS_CLI_LINUX_X86_64: Verus-CLI-Linux-v${VERSION}-x86_64.tar.gz

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
## VerusCoin version 0.9.0-1
2+
## VerusCoin version 0.9.0-2
33

44
Arguably the world's most advanced technology, zero knowledge privacy-centric blockchain, Verus Coin brings Sapling performance and zero knowledge features to an intelligent system with interchain smart contracts and a completely original, combined proof of stake/proof of work consensus algorithm that solves the nothing at stake problem. With this and its approach towards CPU mining and ASICs, Verus Coin strives to be one of the most naturally decentralizing and attack resistant blockchains in existence.
55

‎doc/man/verus-cli/linux/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VerusCoin Command Line Tools v0.9.0-1
2+
VerusCoin Command Line Tools v0.9.0-2
33

44
Contents:
55
verusd - VerusCoin daemon

‎doc/man/verus-cli/mac/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VerusCoin Command Line Tools v0.9.0-1
2+
VerusCoin Command Line Tools v0.9.0-2
33

44
Contents:
55
verusd - VerusCoin daemon.

‎doc/man/verus-cli/windows/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VerusCoin Command Line Tools v0.9.0-1
2+
VerusCoin Command Line Tools v0.9.0-2
33

44
Contents:
55
verusd.exe - VerusCoin daemon

‎src/Makefile.am

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
DIST_SUBDIRS = secp256k1 univalue cryptoconditions
1010

11+
# AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS) $(SAN_LDFLAGS) $(HARDENED_LDFLAGS) -Wl,--no-as-needed,-lprofiler,--as-needed
12+
# AM_CXXFLAGS = $(SAN_CXXFLAGS) $(HARDENED_CXXFLAGS) $(ERROR_CXXFLAGS) -Wl,--no-as-needed -lprofiler -Wl,--as-needed
13+
# AM_CPPFLAGS = $(HARDENED_CPPFLAGS) -Wl,--no-as-needed -lprofiler -Wl,--as-needed
1114
AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS) $(SAN_LDFLAGS) $(HARDENED_LDFLAGS)
1215
AM_CXXFLAGS = $(SAN_CXXFLAGS) $(HARDENED_CXXFLAGS) $(ERROR_CXXFLAGS)
1316
AM_CPPFLAGS = $(HARDENED_CPPFLAGS)
@@ -540,6 +543,7 @@ libbitcoin_common_a_SOURCES = \
540543
metrics.cpp \
541544
mmr.cpp \
542545
pbaas/ethproof.cpp \
546+
pbaas/crosschainrpc.h \
543547
pbaas/crosschainrpc.cpp \
544548
pbaas/vdxf.cpp \
545549
primitives/block.cpp \
@@ -594,6 +598,7 @@ endif
594598
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
595599
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
596600
libbitcoin_cli_a_SOURCES = \
601+
arith_uint256.cpp \
597602
rpc/client.cpp \
598603
$(BITCOIN_CORE_H) \
599604
$(LIBZCASH_H)
@@ -777,6 +782,8 @@ libzcashconsensus_la_SOURCES = \
777782
crypto/sha256.cpp \
778783
crypto/sha512.cpp \
779784
hash.cpp \
785+
pbaas/crosschainrpc.h \
786+
pbaas/crosschainrpc.cpp \
780787
primitives/transaction.cpp \
781788
primitives/nonce.cpp \
782789
pubkey.cpp \

‎src/bitcoind.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN];
4747
void komodo_passport_iteration();
4848
uint64_t komodo_interestsum();
4949
int32_t komodo_longestchain();
50+
UniValue closeoffers(const UniValue& params, bool fHelp);
5051

5152
void WaitForShutdown(boost::thread_group* threadGroup)
5253
{
5354
bool fShutdown = ShutdownRequested();
55+
int64_t curTimeSec = (GetTimeMillis() / 1000);
5456
// Tell the main threads to shutdown.
5557
while (!fShutdown)
5658
{
@@ -66,6 +68,22 @@ void WaitForShutdown(boost::thread_group* threadGroup)
6668
komodo_longestchain();
6769
MilliSleep(20000);
6870
}
71+
// attempt to close any open offers every 5 minutes
72+
if (pwalletMain &&
73+
((GetTimeMillis() / 1000) - curTimeSec) > 300 &&
74+
!IsInitialBlockDownload(Params()))
75+
{
76+
try
77+
{
78+
UniValue params(UniValue::VARR);
79+
closeoffers(params, false);
80+
}
81+
catch(...)
82+
{
83+
//LogPrintf("%s: Error %s\n", __func__, e.what());
84+
}
85+
curTimeSec = (GetTimeMillis() / 1000);
86+
}
6987
fShutdown = ShutdownRequested();
7088
}
7189
if (threadGroup)

0 commit comments

Comments
 (0)