According to my understanding, it should not be possible for coinbase transactions to be conflicting, thus it should not be possible for GetDepthInMainChain to return a negative result. If it did, this would also result in innacurate results for GetBlocksToMaturity due to the math therein. asserting ensures accuracy.
wallet: assert to ensure accuracy of CMerkleTx::GetBlocksToMaturity #13657
pull Empact wants to merge 1 commits into bitcoin:master from Empact:accurate-get-blocks-to-maturity changing 1 files +3 −1-
Empact commented at 4:45 PM on July 13, 2018: member
-
93de2891fa
wallet: assert to ensure accuracy of CMerkleTx::GetBlocksToMaturity
According to my understanding, it should not be possible for coinbase transactions to be conflicting, thus it should not be possible for GetDepthInMainChain to return a negative result. If it did, this would also result in innacurate results for GetBlocksToMaturity due to the math therein. asserting ensures accuracy.
-
promag commented at 8:47 PM on July 13, 2018: member
Coinbase transactions can't conflict because they don't spend transaction outputs.
Is this the only place this assert makes sense?
-
sipa commented at 9:48 PM on July 13, 2018: member
utACK 93de2891fa9cb8314573ba3a6ab764bc9c52444d
- fanquake added the label Wallet on Jul 13, 2018
-
DrahtBot commented at 8:12 PM on August 3, 2018: member
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
- #10973 (Refactor: separate wallet from node by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
laanwj commented at 12:20 PM on August 7, 2018: member
utACK 93de2891fa9cb8314573ba3a6ab764bc9c52444d
- laanwj merged this on Aug 7, 2018
- laanwj closed this on Aug 7, 2018
- laanwj referenced this in commit 51c693d49e on Aug 7, 2018
- PastaPastaPasta referenced this in commit 3f9a3fe344 on Dec 16, 2020
- PastaPastaPasta referenced this in commit b5ec0eeefc on Dec 18, 2020
- PastaPastaPasta referenced this in commit 4d0edcfbdd on Dec 18, 2020
- DrahtBot locked this on Sep 8, 2021