Commit 93de289
committed
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.1 parent 2ea7eb6 commit 93de289
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4397 | 4397 | | |
4398 | 4398 | | |
4399 | 4399 | | |
4400 | | - | |
| 4400 | + | |
| 4401 | + | |
| 4402 | + | |
4401 | 4403 | | |
4402 | 4404 | | |
4403 | 4405 | | |
| |||
0 commit comments