dogecoin/src
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
..
bench Modify chain consensus parameters to be height aware (#1396) 2018-09-19 19:24:06 +01:00
compat GCC-7 and glibc-2.27 compat code 2021-09-29 20:50:09 +02:00
config
consensus Fixate BIP65 softfork heights 2021-02-13 17:24:55 +01:00
crypto Fix FreeBSD scrypt compilation 2021-08-28 08:54:34 -07:00
leveldb Locale independent sorting 2021-02-13 17:51:31 +01:00
obj
obj-test
policy Remove dustRelayFee as it is no longer used 2021-10-10 22:07:12 +02:00
primitives cleanup: remove unused CTransaction methods 2021-10-17 20:35:51 +02:00
qt qt: display full version on overview screen 2021-10-17 03:07:39 +02:00
rpc rpc: cache aux block per scriptPubKey in createauxblock 2021-10-30 15:59:46 -04:00
script Ensure -maxsigcachesize is in valid range 2017-02-17 09:04:37 +01:00
secp256k1 Update libsecp256k1 to master 2016-12-12 11:08:47 -08:00
support [wallet] Securely erase potentially sensitive keys/values 2017-06-05 22:58:24 +00:00
test Remove GetBlockSubsidy (Not Used - replaced) 2021-10-28 23:36:48 +01:00
univalue Update univalue from bitcoin-core/univalue-subtree:bitcoin-fork 2021-10-17 22:05:37 +02:00
wallet scripted-diff: Use UniValue.pushKV instead of push_back(Pair()) 2021-10-18 03:50:47 +02:00
zmq [zmq] Call va_end() on va_start()ed args 2021-10-17 10:23:34 -07:00
.clang-format [doc] Remove unused clang format dev script 2017-01-28 16:57:08 +01:00
addrdb.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
addrdb.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
addrman.cpp Use z = std::max(x - y, 0); instead of z = x - y; if (z < 0) z = 0; 2017-02-07 15:46:38 +01:00
addrman.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
alert.cpp Re-introduce alert functionality (#1470) 2018-09-19 22:11:47 +01:00
alert.h fix self-assigned nVersion in CAlert serialization 2021-08-29 21:28:59 +02:00
amount.cpp Reduce recommended fees 2021-09-03 10:52:24 +01:00
amount.h Remove redundant explicitly defined copy ctors 2021-08-28 21:07:58 +02:00
arith_uint256.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
arith_uint256.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
auxpow.cpp Move COINBASE_MATURITY to the consensus parameters (#1426) 2018-09-19 21:09:16 +01:00
auxpow.h Merge AuxPoW support from Namecore 2018-09-19 19:22:45 +01:00
base58.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
base58.h [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
bitcoin-cli-res.rc
bitcoin-cli.cpp Introduce basic Dogecoin branding 2019-03-25 05:36:11 +00:00
bitcoin-tx-res.rc
bitcoin-tx.cpp Introduce basic Dogecoin branding 2019-03-25 05:36:11 +00:00
bitcoind-res.rc Rename binaries to match Dogecoin 2019-03-25 05:36:11 +00:00
bitcoind.cpp Introduce basic Dogecoin branding 2019-03-25 05:36:11 +00:00
blockencodings.cpp Modify chain consensus parameters to be height aware (#1396) 2018-09-19 19:24:06 +01:00
blockencodings.h [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
bloom.cpp Refactor: Remove using namespace <xxx> from src/*.cpp. 2017-01-27 18:13:20 +09:00
bloom.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
chain.cpp Don't re-check AuxPoW when sending data to peers 2021-02-08 16:52:55 +04:00
chain.h Don't re-check AuxPoW when sending data to peers 2021-02-08 16:52:55 +04:00
chainparams.cpp Add updated 1.14.5 checkpoints 2021-09-24 22:50:17 +01:00
chainparams.h Re-introduce alert functionality (#1470) 2018-09-19 22:11:47 +01:00
chainparamsbase.cpp Replace consensus values with Dogecoin equivalents 2018-09-19 19:21:48 +01:00
chainparamsbase.h
chainparamsseeds.h update seeds for 1.14.4 2021-08-15 04:06:14 +02:00
checkpoints.cpp [MOVEONLY] Move progress estimation out of checkpoints 2017-01-04 13:18:49 -08:00
checkpoints.h [MOVEONLY] Move progress estimation out of checkpoints 2017-01-04 13:18:49 -08:00
checkqueue.h Fix CCheckQueue IsIdle (potential) race condition and remove dangerous constructors. 2017-01-20 18:18:59 -05:00
clientversion.cpp Introduce basic Dogecoin branding 2019-03-25 05:36:11 +00:00
clientversion.h open 1.14.5 for development 2021-08-20 23:37:24 +02:00
coins.cpp Check FRESH validity in CCoinsViewCache::BatchWrite 2017-01-04 14:56:17 -05:00
coins.h Merge #9107: Safer modify new coins 2017-01-04 11:56:17 -08:00
compat.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
compressor.cpp
compressor.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
core_io.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
core_memusage.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
core_read.cpp Fail in DecodeHexTx if there is extra data at the end 2017-02-02 17:32:27 -05:00
core_write.cpp Refactor: Remove using namespace <xxx> from src/*.cpp. 2017-01-27 18:13:20 +09:00
cuckoocache.h [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
dbwrapper.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
dbwrapper.h Merge #9353: Add data() method to CDataStream (and use it) 2017-01-09 08:47:47 -08:00
dogecoin-fees.cpp cleanup: remove unused GetDogecoinWalletFee(Rate) 2021-10-17 21:28:58 +02:00
dogecoin-fees.h cleanup: remove unused GetDogecoinWalletFee(Rate) 2021-10-17 21:28:58 +02:00
dogecoin.cpp Initial back end framework to separate wallet and relay fees + dust. 2021-07-30 16:07:22 -06:00
dogecoin.h Initial back end framework to separate wallet and relay fees + dust. 2021-07-30 16:07:22 -06:00
hash.cpp Remove more implicit fallthrough compiler warnings 2021-09-01 20:52:06 -07:00
hash.h Avoid VLA in hash.h 2017-02-28 12:48:19 +01:00
httprpc.cpp Make KEY_SIZE a compile-time constant 2017-02-17 21:50:14 +01:00
httprpc.h
httpserver.cpp httpserver: include deque 2020-01-24 20:16:27 +00:00
httpserver.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
indirectmap.h
init.cpp fix: always check nDustLimit to be >= nHardDustLimit 2021-10-12 19:58:30 +02:00
init.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
key.cpp Trivial: Fix Magic Numbers in key and pubkey - fixes #1968 2021-07-25 19:32:23 +01:00
key.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
keystore.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
keystore.h
limitedmap.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
Makefile.am GCC-7 and glibc-2.27 compat code 2021-09-29 20:50:09 +02:00
Makefile.bench.include Rename binaries to match Dogecoin 2019-03-25 05:36:11 +00:00
Makefile.leveldb.include Merge #8826: Do not include env_win.cc on non-Windows systems 2016-09-29 17:27:28 +02:00
Makefile.qt.include rename other icons 2021-09-14 21:18:15 -04:00
Makefile.qttest.include Rename binaries to match Dogecoin 2019-03-25 05:36:11 +00:00
Makefile.test.include Add rule to generate raw.h file to test Makefile 2019-03-25 05:36:12 +00:00
memusage.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
merkleblock.cpp Trivial: remove extra character from comment 2017-06-05 22:58:53 +00:00
merkleblock.h Fixed typo in documentation for merkleblock.h 2017-06-05 22:58:53 +00:00
miner.cpp Reduce recommended fees 2021-09-03 10:52:24 +01:00
miner.h Cherry-pick from Bitcoin repo, 1ec0c0a: small changes for OSX build 2019-03-25 05:36:12 +00:00
net.cpp rpc: add feefilter to peers from getpeerinfo 2021-08-14 03:16:54 +02:00
net.h rpc: add feefilter to peers from getpeerinfo 2021-08-14 03:16:54 +02:00
net_processing.cpp net: Enforce minimum block download window multiplier 2021-10-19 17:10:43 -07:00
net_processing.h net: Enforce minimum block download window multiplier 2021-10-19 17:10:43 -07:00
netaddress.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
netaddress.h [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
netbase.cpp ignore-proxy-connection-error 2021-02-23 23:31:02 -05:00
netbase.h Merge #9289: net: drop boost::thread_group 2017-01-04 12:21:53 +01:00
netmessagemaker.h Net: Make CNetMsgMaker more const 2017-01-31 23:29:28 +01:00
noui.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
noui.h
pow.cpp Modify chain consensus parameters to be height aware (#1396) 2018-09-19 19:24:06 +01:00
pow.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
prevector.h prevector: assert successful allocation 2017-02-28 11:40:50 +01:00
protocol.cpp Re-introduce alert functionality (#1470) 2018-09-19 22:11:47 +01:00
protocol.h Re-introduce alert functionality (#1470) 2018-09-19 22:11:47 +01:00
pubkey.cpp Trivial: Fix Magic Numbers in key and pubkey - fixes #1968 2021-07-25 19:32:23 +01:00
pubkey.h Trivial: Fix Magic Numbers in key and pubkey - fixes #1968 2021-07-25 19:32:23 +01:00
random.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
random.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
rest.cpp scripted-diff: Use UniValue.pushKV instead of push_back(Pair()) 2021-10-18 03:50:47 +02:00
reverselock.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
scheduler.cpp Fix for Boost 1.74 2021-02-02 03:54:57 -08:00
scheduler.h
serialize.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
streams.h Fix some empty vector references 2017-06-05 22:58:23 +00:00
sync.cpp Further-enforce lockordering by enforcing directly after TRY_LOCKs 2017-02-07 14:15:28 -05:00
sync.h Break addnode out from the outbound connection limits. 2017-01-05 19:02:09 +00:00
threadinterrupt.cpp net: add CThreadInterrupt and InterruptibleSleep 2017-01-03 17:53:09 -05:00
threadinterrupt.h net: add CThreadInterrupt and InterruptibleSleep 2017-01-03 17:53:09 -05:00
threadsafety.h
timedata.cpp Refactor: Remove using namespace <xxx> from src/*.cpp. 2017-01-27 18:13:20 +09:00
timedata.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
tinyformat.h Fix tinyformat.h switch fallthrough warnings 2021-08-29 17:55:20 -07:00
torcontrol.cpp Fix for Boost 1.74 2021-02-02 03:54:57 -08:00
torcontrol.h
txdb.cpp Merge AuxPoW support from Namecore 2018-09-19 19:22:45 +01:00
txdb.h Make threshold for flushing more conservative. 2017-04-05 08:23:02 +02:00
txmempool.cpp Remove redundant explicitly defined copy ctors 2021-08-28 21:07:58 +02:00
txmempool.h Remove redundant explicitly defined copy ctors 2021-08-28 21:07:58 +02:00
ui_interface.cpp [wallet] Add high transaction fee warnings 2016-09-26 01:11:27 +02:00
ui_interface.h Re-introduce alert functionality (#1470) 2018-09-19 22:11:47 +01:00
uint256.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
uint256.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
undo.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
util.cpp Introduce basic Dogecoin branding 2019-03-25 05:36:11 +00:00
util.h Introduce basic Dogecoin branding 2019-03-25 05:36:11 +00:00
utilmoneystr.cpp
utilmoneystr.h
utilstrencodings.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
utilstrencodings.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
utiltime.cpp [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
utiltime.h net: Consistently use GetTimeMicros() for inactivity checks 2017-01-25 09:48:14 -05:00
validation.cpp Remove GetBlockSubsidy (Not Used - replaced) 2021-10-28 23:36:48 +01:00
validation.h Remove GetBlockSubsidy (Not Used - replaced) 2021-10-28 23:36:48 +01:00
validationinterface.cpp Fix for Boost 1.74 2021-02-02 03:54:57 -08:00
validationinterface.h Better document usage of SyncTransaction 2017-01-23 15:43:22 -05:00
version.h Annotate work to be done to Dogecoin-ify 2018-09-19 19:21:49 +01:00
versionbits.cpp Don't require segwit in getblocktemplate for segwit signalling or mining 2017-03-16 10:43:54 -04:00
versionbits.h RPC: augment getblockchaininfo bip9_softforks data 2016-10-19 09:08:39 -04:00
warnings.cpp Re-introduce alert functionality (#1470) 2018-09-19 22:11:47 +01:00
warnings.h Move GetWarnings() into its own file. 2016-12-03 07:17:34 +00:00