dogecoin/src/rpc
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
..
blockchain.cpp scripted-diff: Use UniValue.pushKV instead of push_back(Pair()) 2021-10-18 03:50:47 +02:00
client.cpp Add functionality to generate auxpow blocks in regtest 2021-05-25 18:23:36 -04:00
client.h rpc: Named argument support for bitcoin-cli 2017-01-10 12:04:54 +01:00
mining.cpp rpc: cache aux block per scriptPubKey in createauxblock 2021-10-30 15:59:46 -04:00
misc.cpp scripted-diff: Use UniValue.pushKV instead of push_back(Pair()) 2021-10-18 03:50:47 +02:00
net.cpp [rpc] Add dustlimit info to getnetworkinfo 2021-10-28 16:24:33 -04:00
protocol.cpp scripted-diff: Use UniValue.pushKV instead of push_back(Pair()) 2021-10-18 03:50:47 +02:00
protocol.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
rawtransaction.cpp scripted-diff: Use UniValue.pushKV instead of push_back(Pair()) 2021-10-18 03:50:47 +02:00
register.h Do not shadow global RPC table variable (tableRPC) 2016-08-25 15:02:26 +02:00
server.cpp Update server.cpp 2021-07-22 10:49:47 +02:00
server.h Change count type used by gettxoutsetinfo (#1415) 2018-09-19 19:24:06 +01:00