-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: multiple minor errors for Dash Core pre v22 #6373
fix: multiple minor errors for Dash Core pre v22 #6373
Conversation
fe559d2
to
2aff47c
Compare
… get payees for block at height" [httpworker.0] [masternode/payments.cpp:116] [IsTransactionValid] CMNPaymentsProcessor::IsTransactionValid -- ERROR! Failed to get payees for block at height 110 [httpworker.0] [masternode/payments.cpp:278] [IsBlockPayeeValid] CMNPaymentsProcessor::IsBlockPayeeValid -- Valid masternode payment at height 110: CTransaction(hash=837e35fab5, ver=3, type=5, vin.size=1, vout.size=1, nLockTime=0, vExtraPayload.size=70) CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 016e0101) CTxOut(nValue=500.00000000, scriptPubKey=76a9148708dff2bf8b31363cb4201d)
…ssage in logs exmple of error during first start of dashd: [ init] [util/system.h:57] [error] ERROR: CoreRead: Failed to open file DASH/node0/regtest/governance.dat
On CI it is not critical, because there are only 4-8 parallel jobs, while locally it can be 12-20 or even more
2aff47c
to
2026c59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 2026c59
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, small suggestion
@@ -200,10 +200,10 @@ class CFlatDB | |||
int64_t nStart = GetTimeMillis(); | |||
|
|||
LogPrintf("Writing info to %s...\n", strFilename); | |||
CoreWrite(objToSave); | |||
const bool ret = CoreWrite(objToSave); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably not print "dump finished" if ret
is false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that log is for benchmark purposes, but I am ready to apply suggestions
@@ -51,8 +51,12 @@ CAmount PlatformShare(const CAmount reward) | |||
LogPrint(BCLog::MNPAYMENTS, "CMNPaymentsProcessor::%s -- MN reward %lld reallocated to credit pool\n", __func__, platformReward); | |||
voutMasternodePaymentsRet.emplace_back(platformReward, CScript() << OP_RETURN); | |||
} | |||
|
|||
auto dmnPayee = m_dmnman.GetListForBlock(pindexPrev).GetMNPayee(pindexPrev); | |||
const auto mnList = m_dmnman.GetListForBlock(pindexPrev); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
678db6f: where'd you find this crash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not a crash and even not a failure. It is not expecting ERROR strings in logs on Regtest for every block since DIP0003 is activated but no masternodes created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally LGTM 2026c59; one question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 2026c59
Issue being fixed or feature implemented
It fixes several minor issues:
error messages in logs on regtest:
error messages for non-existing files for first run:
non-dashified
bitcoin-cli
indoc/JSON-RPC-interface.md
incorrect initialization of
CMerkleBlock
in functional tests which can cause an un-explainable failureuse random ports for
interface_zmq_dash.py
to let tests run simultaneouslyfix missing todo about using
sethdseed
after backport: bitcoin#18836, #19046, #19490, #20403, #21127, #21238, #21329 - descriptor wallets part V & sethdseed #6017optimization of local run of functional tests (slowest go first)
What was done?
See each commit
How Has This Been Tested?
Run unit/functional tests
Breaking Changes
N/A
Checklist:
Go over all the following points, and put an
x
in all the boxes that apply.