Skip to content

Commit 65176b9

Browse files
Merge branch 'develop' of https://github.com/dashpay/dash into develop
2 parents 458af19 + 9310ebc commit 65176b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+611
-491
lines changed

ci/test/00_setup_env_native_qt5.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export TEST_RUNNER_EXTRA="--previous-releases --coverage --extended --exclude fe
1414
export RUN_UNIT_TESTS_SEQUENTIAL="true"
1515
export RUN_UNIT_TESTS="false"
1616
export GOAL="install"
17-
export PREVIOUS_RELEASES_TO_DOWNLOAD="v0.15.0.0 v0.16.1.1 v0.17.0.3 v18.2.2 v19.3.0 v20.0.1"
17+
export PREVIOUS_RELEASES_TO_DOWNLOAD="v0.12.1.5 v0.15.0.0 v0.16.1.1 v0.17.0.3 v18.2.2 v19.3.0 v20.0.1"
1818
export BITCOIN_CONFIG="--enable-zmq --with-libs=no --enable-reduce-exports --disable-fuzz-binary LDFLAGS=-static-libstdc++ --with-boost-process"

contrib/containers/guix/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ services:
1515
network_mode: host
1616
volumes:
1717
- "../../..:/src/dash:rw"
18+
- "../../../../dash-detached-sigs:/src/dash-detached-sigs:rw"
19+
- "../../../../guix.sigs:/src/guix.sigs:rw"

src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ BITCOIN_CORE_H = \
368368
util/pointer.h \
369369
util/ranges.h \
370370
util/readwritefile.h \
371+
util/result.h \
371372
util/underlying.h \
372373
util/serfloat.h \
373374
util/settings.h \

src/bench/coin_selection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static void CoinSelection(benchmark::Bench& bench)
5656
// Create coins
5757
std::vector<COutput> coins;
5858
for (const auto& wtx : wtxs) {
59-
coins.emplace_back(COutPoint(wtx->GetHash(), 0), wtx->tx->vout.at(0), /*depth=*/6 * 24, GetTxSpendSize(wallet, *wtx, 0), /*spendable=*/true, /*solvable=*/true, /*safe=*/true, wtx->GetTxTime(), /*from_me=*/true);
59+
coins.emplace_back(COutPoint(wtx->GetHash(), 0), wtx->tx->vout.at(0), /*depth=*/6 * 24, GetTxSpendSize(wallet, *wtx, 0), /*spendable=*/true, /*solvable=*/true, /*safe=*/true, wtx->GetTxTime(), /*from_me=*/true, /*fees=*/ 0);
6060
}
6161
const CoinEligibilityFilter filter_standard(1, 6, 0);
6262
FastRandomContext rand{};
@@ -85,7 +85,7 @@ static void add_coin(const CAmount& nValue, int nInput, std::vector<OutputGroup>
8585
CMutableTransaction tx;
8686
tx.vout.resize(nInput + 1);
8787
tx.vout[nInput].nValue = nValue;
88-
COutput output(COutPoint(tx.GetHash(), nInput), tx.vout.at(nInput), /*depth=*/ 0, /*input_bytes=*/ -1, /*spendable=*/ true, /*solvable=*/ true, /*safe=*/ true, /*time=*/ 0, /*from_me=*/ true);
88+
COutput output(COutPoint(tx.GetHash(), nInput), tx.vout.at(nInput), /*depth=*/ 0, /*input_bytes=*/ -1, /*spendable=*/ true, /*solvable=*/ true, /*safe=*/ true, /*time=*/ 0, /*from_me=*/ true, /*fees=*/ 0);
8989
set.emplace_back();
9090
set.back().Insert(output, /*ancestors=*/ 0, /*descendants=*/ 0, /*positive_only=*/ false);
9191
}

src/chainparams.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ class CMainParams : public CChainParams {
210210
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay
211211

212212
consensus.vDeployments[Consensus::DEPLOYMENT_V23].bit = 12;
213-
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nStartTime = 1751328000; // July 1, 2025
214-
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nTimeout = 1782864000; // July 1, 2026
213+
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE; // TODO
214+
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT; // TODO
215215
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nWindowSize = 4032;
216216
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nThresholdStart = 3226; // 80% of 4032
217217
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nThresholdMin = 2420; // 60% of 4032
@@ -408,7 +408,7 @@ class CTestNetParams : public CChainParams {
408408
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay
409409

410410
consensus.vDeployments[Consensus::DEPLOYMENT_V23].bit = 12;
411-
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nStartTime = 1751328000; // July 1, 2025
411+
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE; // TODO
412412
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
413413
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nWindowSize = 100;
414414
consensus.vDeployments[Consensus::DEPLOYMENT_V23].nThresholdStart = 80; // 80% of 100

src/coinjoin/client.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,12 +1557,8 @@ bool CCoinJoinClientSession::CreateCollateralTransaction(CMutableTransaction& tx
15571557
{
15581558
AssertLockHeld(m_wallet->cs_wallet);
15591559

1560-
std::vector<COutput> vCoins;
1561-
CCoinControl coin_control;
1562-
coin_control.nCoinType = CoinType::ONLY_COINJOIN_COLLATERAL;
1563-
1564-
AvailableCoins(*m_wallet, vCoins, &coin_control);
1565-
1560+
CCoinControl coin_control(CoinType::ONLY_COINJOIN_COLLATERAL);
1561+
std::vector<COutput> vCoins{AvailableCoinsListUnspent(*m_wallet, &coin_control).coins};
15661562
if (vCoins.empty()) {
15671563
strReason = strprintf("%s requires a collateral transaction and could not locate an acceptable input!", gCoinJoinName);
15681564
return false;

src/coinjoin/util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef BITCOIN_COINJOIN_UTIL_H
66
#define BITCOIN_COINJOIN_UTIL_H
77

8+
#include <wallet/coincontrol.h>
89
#include <wallet/wallet.h>
910

1011
class CTransactionBuilder;

src/coins.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ class CCoinsViewCursor
158158

159159
virtual bool GetKey(COutPoint &key) const = 0;
160160
virtual bool GetValue(Coin &coin) const = 0;
161-
virtual unsigned int GetValueSize() const = 0;
162161

163162
virtual bool Valid() const = 0;
164163
virtual void Next() = 0;

src/dbwrapper.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,6 @@ class CDBIterator
189189
}
190190
return true;
191191
}
192-
193-
unsigned int GetValueSize() {
194-
return piter->value().size();
195-
}
196-
197192
};
198193

199194
class CDBWrapper
@@ -373,27 +368,10 @@ class CDBWrapper
373368
return size;
374369
}
375370

376-
/**
377-
* Compact a certain range of keys in the database.
378-
*/
379-
template<typename K>
380-
void CompactRange(const K& key_begin, const K& key_end) const
381-
{
382-
CDataStream ssKey1(SER_DISK, CLIENT_VERSION), ssKey2(SER_DISK, CLIENT_VERSION);
383-
ssKey1.reserve(DBWRAPPER_PREALLOC_KEY_SIZE);
384-
ssKey2.reserve(DBWRAPPER_PREALLOC_KEY_SIZE);
385-
ssKey1 << key_begin;
386-
ssKey2 << key_end;
387-
leveldb::Slice slKey1(CharCast(ssKey1.data()), ssKey1.size());
388-
leveldb::Slice slKey2(CharCast(ssKey2.data()), ssKey2.size());
389-
pdb->CompactRange(&slKey1, &slKey2);
390-
}
391-
392371
void CompactFull() const
393372
{
394373
pdb->CompactRange(nullptr, nullptr);
395374
}
396-
397375
};
398376

399377
template<typename CDBTransaction>

src/init.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,8 +2028,9 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
20282028
strLoadError = _("Error initializing block database");
20292029
break;
20302030
case ChainstateLoadingError::ERROR_CHAINSTATE_UPGRADE_FAILED:
2031-
strLoadError = _("Error upgrading chainstate database");
2032-
break;
2031+
return InitError(_("Unsupported chainstate database format found. "
2032+
"Please restart with -reindex-chainstate. This will "
2033+
"rebuild the chainstate database."));
20332034
case ChainstateLoadingError::ERROR_REPLAYBLOCKS_FAILED:
20342035
strLoadError = _("Unable to replay blocks. You will need to rebuild the database using -reindex-chainstate.");
20352036
break;

0 commit comments

Comments
 (0)