-
Notifications
You must be signed in to change notification settings - Fork 38.7k
refactor: Add and use HaveTxsDownloaded() where appropriate #14863
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
Conversation
fa92430 to
fac019a
Compare
promag
left a comment
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.
Concept ACK
Could also update these?:
bitcoin/src/net_processing.cpp
Line 569 in c62b151
| if (pindex->nChainTx) |
bitcoin/src/net_processing.cpp
Line 1127 in c62b151
| if (pindex->nChainTx && !pindex->IsValid(BLOCK_VALID_SCRIPTS) && |
bitcoin/src/rpc/blockchain.cpp
Line 1461 in c62b151
| } else if (block->nChainTx == 0) { |
|
Concept ACK
|
fab51e1 to
fa55fa9
Compare
fa55fa9 to
fa4fc88
Compare
|
utACK fa4fc88. |
|
utACK fa4fc88 |
|
utACK fa4fc88 |
…iate fa4fc88 validation: Add and use HaveTxsDownloaded where appropriate (MarcoFalke) Pull request description: `nChainTx` is an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation. Tree-SHA512: 56ab7378c2ce97794498724c271f861de982de69099e90ec09632a26230ae6fded3c59668adb378bd64dcb8ef714769b970210977b88a53fc7550774ddba3d59
…yHeaderTip fa39809 Avoid unused call to GuessVerificationProgress in NotifyHeaderTip (MarcoFalke) Pull request description: `GuessVerificationProgress` for a header (not a block) is always 0 because the number of txs in the block can not be determined from the header alone. Anyway, this result was never used, so we can optimize this call by hardcoding 0. This is the next commit in a series of changes toward removing nChainTx (see #14863, #13875) ACKs for top commit: promag: Code review ACK fa39809, missed that. laanwj: ACK fa39809 Tree-SHA512: 11016f8dbb1af1cf75241948d1ad35eac0c79d1311cd0db8c6ec806df2a9e3dc5f998dbd66ccbad5d84564e6cec7fe21ce7a2a13c2b34c746e2d3b31aa1db53a
Summary: `nChainTx` is an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation. Backport of Bitcoin Core PR14863 bitcoin/bitcoin#14863 Test Plan: ``` make check ``` Reviewers: Fabien, #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D4552
Summary: `nChainTx` is an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation. Backport of Bitcoin Core PR14863 bitcoin/bitcoin#14863 Test Plan: ``` make check ``` Reviewers: Fabien, #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D4552
Summary: `nChainTx` is an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation. Backport of Bitcoin Core PR14863 bitcoin/bitcoin#14863 Test Plan: ``` make check ``` Reviewers: Fabien, #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D4552
Summary: `nChainTx` is an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation. Backport of Bitcoin Core PR14863 bitcoin/bitcoin#14863 Test Plan: ``` make check ``` Reviewers: Fabien, #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D4552
…appropriate fa4fc88 validation: Add and use HaveTxsDownloaded where appropriate (MarcoFalke) Pull request description: `nChainTx` is an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation. Tree-SHA512: 56ab7378c2ce97794498724c271f861de982de69099e90ec09632a26230ae6fded3c59668adb378bd64dcb8ef714769b970210977b88a53fc7550774ddba3d59
…appropriate fa4fc88 validation: Add and use HaveTxsDownloaded where appropriate (MarcoFalke) Pull request description: `nChainTx` is an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation. Tree-SHA512: 56ab7378c2ce97794498724c271f861de982de69099e90ec09632a26230ae6fded3c59668adb378bd64dcb8ef714769b970210977b88a53fc7550774ddba3d59
nChainTxis an implementation detail that shouldn't be exposed without a wrapper that comes with appropriate documentation.