-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Remove unused variable COINBASE_FLAGS #17489
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
Oh, looks like it is still used in
|
So it might be better to move it to miner.h,cpp. It is confusing to have this sit in validation.h,cpp, where it appears to be an unused variable. |
Ah, my bad. Closing then, as I guess this falls into the refactors section rather than a simple deletion. |
But what is the point of it, if it's never assigned a value? Looks like the last assignment was removed in d449772. I suppose it's kept around for future signalling purposes, but yes, moving it to mining at least would make sense. |
Concept ACK on removal. I think @narula is planning to pick this one up. |
e9a27cf refactor: Remove unused COINBASE_FLAGS (Neha Narula) Pull request description: Commit d449772 stopped setting COINBASE_FLAGS, and it looks like it hasn't been used since P2SH. Following up on #17489, remove COINBASE_FLAGS which is unused. I verified that removing this did not change the contents of the coinbase's scriptSig. ACKs for top commit: laanwj: ACK e9a27cf MarcoFalke: ACK e9a27cf 💻 Tree-SHA512: f9dac124ce7e3edcae974137764bb5039387b1b123b86af44486e398aa4a8d91a9ecf640e207b364ae303acbbaee7cca300d303ea3d6869ba9cae2bf555a6334
e9a27cf refactor: Remove unused COINBASE_FLAGS (Neha Narula) Pull request description: Commit d449772 stopped setting COINBASE_FLAGS, and it looks like it hasn't been used since P2SH. Following up on bitcoin#17489, remove COINBASE_FLAGS which is unused. I verified that removing this did not change the contents of the coinbase's scriptSig. ACKs for top commit: laanwj: ACK e9a27cf MarcoFalke: ACK e9a27cf 💻 Tree-SHA512: f9dac124ce7e3edcae974137764bb5039387b1b123b86af44486e398aa4a8d91a9ecf640e207b364ae303acbbaee7cca300d303ea3d6869ba9cae2bf555a6334
e9a27cf refactor: Remove unused COINBASE_FLAGS (Neha Narula) Pull request description: Commit d449772 stopped setting COINBASE_FLAGS, and it looks like it hasn't been used since P2SH. Following up on bitcoin#17489, remove COINBASE_FLAGS which is unused. I verified that removing this did not change the contents of the coinbase's scriptSig. ACKs for top commit: laanwj: ACK e9a27cf MarcoFalke: ACK e9a27cf 💻 Tree-SHA512: f9dac124ce7e3edcae974137764bb5039387b1b123b86af44486e398aa4a8d91a9ecf640e207b364ae303acbbaee7cca300d303ea3d6869ba9cae2bf555a6334
e9a27cf refactor: Remove unused COINBASE_FLAGS (Neha Narula) Pull request description: Commit d449772 stopped setting COINBASE_FLAGS, and it looks like it hasn't been used since P2SH. Following up on bitcoin#17489, remove COINBASE_FLAGS which is unused. I verified that removing this did not change the contents of the coinbase's scriptSig. ACKs for top commit: laanwj: ACK e9a27cf MarcoFalke: ACK e9a27cf 💻 Tree-SHA512: f9dac124ce7e3edcae974137764bb5039387b1b123b86af44486e398aa4a8d91a9ecf640e207b364ae303acbbaee7cca300d303ea3d6869ba9cae2bf555a6334
* Merge bitcoin#17519: rpc: Remove unused COINBASE_FLAGS e9a27cf refactor: Remove unused COINBASE_FLAGS (Neha Narula) Pull request description: Commit d449772 stopped setting COINBASE_FLAGS, and it looks like it hasn't been used since P2SH. Following up on bitcoin#17489, remove COINBASE_FLAGS which is unused. I verified that removing this did not change the contents of the coinbase's scriptSig. ACKs for top commit: laanwj: ACK e9a27cf MarcoFalke: ACK e9a27cf 💻 Tree-SHA512: f9dac124ce7e3edcae974137764bb5039387b1b123b86af44486e398aa4a8d91a9ecf640e207b364ae303acbbaee7cca300d303ea3d6869ba9cae2bf555a6334 * Update src/rpc/mining.cpp Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> Co-authored-by: Wladimir J. van der Laan <laanwj@protonmail.com> Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
No description provided.