9300 Commits

Author SHA1 Message Date
Wladimir J. van der Laan
87946deb94 build: Update build system for new leveldb
Upstream leveldb switched build systems, which means we need to define
a few different values.
2021-11-29 18:35:38 +01:00
MarcoFalke
752cb6d88d Add extra LevelDB source to Makefile 2021-11-29 18:27:05 +01:00
Chun Kuan Lee
97998bd989 build: Remove WINVER pre define in Makefile.leveldb.inlcude 2021-11-29 18:27:05 +01:00
Wladimir J. van der Laan
fd64777c4f Update to leveldb upstream using subtree merge 2021-11-29 18:27:05 +01:00
MarcoFalke
0b42af2ddb Pull leveldb subtree 2021-11-29 18:27:05 +01:00
MarcoFalke
c7f5171919 Merge leveldb subtree
Merge commit 'ec749b1bcdf2483b642fb51d635800e272c68ba6' into HEAD
2021-11-29 18:27:05 +01:00
MarcoFalke
c217773a6b Bump leveldb subtree 2021-11-29 18:27:05 +01:00
Pieter Wuille
8c4966dd66 Update LevelDB with latest Bitcoin-specific patches 2021-11-29 18:27:05 +01:00
Pieter Wuille
fc11055f0a Update to LevelDB 1.20 2021-11-29 18:27:05 +01:00
Patrick Lodder
f6bbad704f
Merge pull request #2718 from Likenttt/patch-1
fix a grammar problem
2021-11-22 14:33:22 -05:00
Chuanyi
fb2567fc6a
fix a grammar problem
Who own the private keys own the coins. -> Who owns the private keys owns the coins.
2021-11-21 16:55:26 +08:00
Ross Nicoll
4b3e6529e9
Merge pull request #2693 from patricklodder/1.14.6-fix-boost-autoconf
build: change minimum boost to 1_60_0
2021-11-12 00:47:18 +00:00
Patrick Lodder
d5f19e266b
bench: remove bitcoin-specific benchmarks 2021-11-11 13:22:40 -05:00
Patrick Lodder
bd865b061d
build: remove outdated boost checks now that we require 1_60+ 2021-11-11 10:13:19 -05:00
Patrick Lodder
9a237032dd
open 1.14.6 for development 2021-11-08 08:22:02 -05:00
Ross Nicoll
31afd13311
Merge pull request #2670 from patricklodder/1.14.5-fixate
fixate 1.14.5
2021-11-07 17:08:22 +00:00
Vasil Dimov
09f86e7494
lockedpool: avoid sensitive data in core files (FreeBSD)
This is a followup to
23991ee53 / https://github.com/bitcoin/bitcoin/pull/15600
to also use madvise(2) on FreeBSD to avoid sensitive data allocated
with secure_allocator ending up in core files in addition to preventing
it from going to the swap.
2021-11-05 08:26:11 -04:00
Luke Dashjr
b4b98d7ad0
lockedpool: When possible, use madvise to avoid including sensitive information in core dumps 2021-11-05 08:26:04 -04:00
Patrick Lodder
e92aba9190
fixate 1.14.5 2021-11-04 16:54:55 -04:00
Patrick Lodder
0f7c23e1e5
Update mainnet seeds for 1.14.5 2021-11-04 16:35:11 -04:00
Ross Nicoll
b5d69ab693
Merge pull request #2659 from patricklodder/1.14.5-fix-overviewpage-warn
trivial: remove empty pixmap tag in overviewpage.ui
2021-11-03 22:58:49 +00:00
Ross Nicoll
0e917fcf1b
Merge pull request #2666 from patricklodder/1.14.5-qt-discard-args
Give QApplication dummy arguments
2021-11-03 22:55:54 +00:00
Patrick Lodder
a92f2dcde4
Merge pull request #2662 from rnicoll/1.14.5-checkpoints
Refresh checkpoints for 1.14.5
2021-11-03 18:08:09 -04:00
Patrick Lodder
d2b1a61753
Give QApplication dummy arguments
Discards any Qt built-in command line arguments and replaces them
with dummy argv that only contains the binary name. Solves CVE-2021-3401.

Manually ported from bitcoin/bitcoin@a2714a5c
2021-11-03 12:05:46 -04:00
Ross Nicoll
5280e456f5
Refresh checkpoints for 1.14.5 2021-11-02 20:36:47 +00:00
Patrick Lodder
60618c5099
trivial: remove empty pixmap tag in overviewpage.ui
QT complains about this, removing the tag removes the warning.
2021-11-01 19:45:06 -04:00
Ross Nicoll
5bb3112c68
Refresh translation files
Also fixes an issue with `make qt/bitcoinstrings.cpp` not working correctly, due to incorrect variable names
2021-11-01 23:21:59 +00:00
Patrick Lodder
8e4ea27962
Merge pull request #2491 from edtubbs/master
[feat] Added AVX2 SHA support
2021-11-01 18:47:05 -04:00
Ross Nicoll
2076361f88
Merge pull request #2654 from patricklodder/1.14.5-namecoin-aux-api
[rpc] configure auxpow rpc methods to use Namecoin-compatible API
2021-11-01 22:15:46 +00:00
Patrick Lodder
d3d688deae
rpc: configure auxpow rpc methods to use Namecoin-compatible API
Allows easy integration with mining software that expects either
a "_target" (Namecoin) or a "target" (Dogecoin) field when
creating auxpow blocks using the -rpcnamecoinapi startup arg.

This saves pools effort in integrating the API they need whenever
a new Dogecoin Core release comes out.
2021-11-01 15:59:23 -04:00
Dakoda Greaves
27ac4a1e79
rpc: improve error message in submitblock
split previous conditional statement into 2
check that block both starts with and contains a coinbase transaction
2021-10-31 17:44:25 -07:00
Ross Nicoll
097d87df2f
Merge pull request #2286 from rnicoll/1.14.4-improve-checkblock-failure
Shut down if trying to connect a corrupted block
2021-10-31 23:55:38 +00:00
Patrick
2291b6a7cc
rpc: cache aux block per scriptPubKey in createauxblock
- RPC caching source cherry-picked from: btccom@f4b613b2
- Adds addl test scenarios to createauxblock.py tests

Allows pool operators to run multiple sub-pools with different
target addresses from a single dogecoind instance. Without this
enhancement, subsequent calls to createauxblock with differing
addresses ignore the address given and instead just return the
block containing the address that initially triggered generation
of the cached block. This can quickly lead to unpredictable
results as race scenarios between sub-pools come into play.

Note that, like with getauxblock, the cache only resets on aux
block creation, not submission, so submitauxblock will accept
multiple submissions at the same height until createauxblock is
called, resulting in chaintip forks.

Co-Authored-By: leezhen <jasper.li@bitmain.com>
2021-10-30 15:59:46 -04:00
Patrick
8efd7e62bd
trivial: fix indentation/spacing in rpc/mining.cpp
Fixes some indentation issues to make the mining rpc code easier
to read and clean up some odd lines
2021-10-30 15:59:39 -04:00
Michi Lumin
c2532d3f6a
rpc: Add createauxblock and submitauxblock methods back
Adds back Namecoin's createauxblock and submitauxblock rpc methods
to allow easier integration for mining pools that wish to reuse
existing implementations of Namecoin/Bitcoin merge mining.

Cherry-picked from: michilumin@1c5b9b33

Changes post-pick:
- Fixed issue with erroneously moved LOCK in getauxblock
- Disabled mining of witness tx as done for getauxblock
- Fixed indentation, increasing readability and fixing warnings
- Follow Dogecoin API for "target" instead of "_target"
- Remove personal comments
2021-10-30 15:52:50 -04:00
Ross Nicoll
e254dd665b
Merge pull request #2645 from patricklodder/1.14.5-dustlimitinfo
[rpc] Add dustlimit info to getnetworkinfo
2021-10-30 19:38:12 +01:00
KabDeveloper
4c94a061c0 Remove GetBlockSubsidy (Not Used - replaced) 2021-10-28 23:36:48 +01:00
Patrick
c3cead8737
[rpc] Add dustlimit info to getnetworkinfo 2021-10-28 16:24:33 -04:00
Dakoda Greaves
1ec3f19fc0
net: Enforce minimum block download window multiplier
The timeout window for block downloads scales proportionally to the target
spacing for the chain, as set in chainparams.cpp. This causes issues on regtest
because the spacing is set to 1 second, allowing insufficient time for very
large blocks to sync when requested in batch, preventing success of the pruning
qa test.

We fix this by introducing a minimum multiplier (in seconds) that will be used
instead of the target block spacing whenever the latter is lower. With a value
of 10 seconds, pruning tests pass.
2021-10-19 17:10:43 -07:00
Ross Nicoll
9e6a8bc5c4
Merge pull request #2628 from patricklodder/1.14.5-univalue-update
univalue: update to latest version
2021-10-19 20:48:07 +01:00
Michi Lumin
2e082af18e Revert "First run at adding back createauxblock and submitauxblock back to methods"
This reverts commit 791be7b57d20241831d4f05175a311a130fe4665.
2021-10-18 20:58:23 -06:00
Michi Lumin
71edb4cc79 Revert "Revert "Merge branch '1.14.5-dev' of http://github.com/dogecoin/dogecoin into 1.14.5-dev""
This reverts commit ca6297be978cd077b7d5c6a82e101f3fc1cfaef5.
2021-10-18 20:57:22 -06:00
Michi Lumin
ca6297be97 Revert "Merge branch '1.14.5-dev' of http://github.com/dogecoin/dogecoin into 1.14.5-dev"
This reverts commit 16761956ce2ccb9b994edf4a2fd79721010c23fd, reversing
changes made to 1eede33ce81dbea5745cec6b731c9ca2a587e0bf.
2021-10-18 20:46:59 -06:00
Michi Lumin
16761956ce Merge branch '1.14.5-dev' of http://github.com/dogecoin/dogecoin into 1.14.5-dev 2021-10-18 20:21:26 -06:00
Michi Lumin
791be7b57d First run at adding back createauxblock and submitauxblock back to methods 2021-10-18 20:19:57 -06:00
Ross Nicoll
79f5d63fa6
Merge pull request #2632 from patricklodder/1.14.5-fee-cleanup
cleanup: remove dead code related to fee and dust changes
2021-10-19 00:10:39 +01:00
Patrick Lodder
976474f28b
scripted-diff: remove trailing spaces after commas from fixtures
-BEGIN VERIFY SCRIPT-
find src/test/data -name "*json" | xargs sed -i "s/, $/,/g"
-END VERIFY SCRIPT-

Needed for univalue pull
2021-10-18 03:50:56 +02:00
Patrick Lodder
edd0da7968
scripted-diff: Use UniValue.pushKV instead of push_back(Pair())
-BEGIN VERIFY SCRIPT-
git grep -l "push_back(Pair" | xargs sed -i "s/push_back(Pair(\(.*\)));/pushKV(\1);/g"
-END VERIFY SCRIPT-

Copied from: bitcoin/bitcoin#91986ed2
2021-10-18 03:50:47 +02:00
Patrick Lodder
d81d2329f2
Update univalue from bitcoin-core/univalue-subtree:bitcoin-fork
Merge commit 'd29583af8fa9536da33df679bd03f63d76c5d334' into 1.14.5-dev
2021-10-17 22:05:37 +02:00
Patrick Lodder
35754ca98f
cleanup: remove unused GetDogecoinWalletFee(Rate) 2021-10-17 21:28:58 +02:00