|
Ran
|
Jobs
1
|
Files
202
|
Run time
1min
|
Badge
README BADGES
|
github
multi: copied assets shouldn't inherit locktime from inputs In this commit, we fix an existing bug related to lock times and split commitments. Before this commit, if an input had a relative lock time, then when we went to make the new split assets, we would _copy_ that value into the split. This isn't correct as the input is valid/confirmed, so we don't need to copy over the lock time information. The prior behavior would cause certain classes of spends to fail, as we would be validating a new root asset that has no lock time, but the root asset split inserted into the split commitment would be carrying the old lock time. When verifying the split, we would set the lock times of the split to that of the new asset: https://github.com/lightninglabs/taproot-assets/blob/e893dee87/vm/vm.go#L305-L307. As we copied over the lock time from the input, we would now effectively invalid the split commitment. Fixes https://github.com/lightninglabs/taproot-assets/issues/1099
10 of 15 new or added lines in 3 files covered. (66.67%)
27 existing lines in 8 files now uncovered.23972 of 59442 relevant lines covered (40.33%)
55225.01 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 5 |
0.55 |
-0.0% | tapfreighter/wallet.go |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
84.17 |
0.26% | commitment/tap.go |
| 2 |
79.04 |
-0.25% | tapdb/addrs.go |
| 2 |
53.22 |
0.0% | tappsbt/create.go |
| 2 |
74.87 |
-0.15% | tapgarden/planter.go |
| 2 |
81.54 |
0.19% | asset/asset.go |
| 4 |
80.91 |
-0.68% | tapdb/universe.go |
| 4 |
68.87 |
0.38% | tapgarden/caretaker.go |
| 10 |
51.12 |
0.9% | universe/interface.go |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | unit - 10528329850.1 | 202 |
40.33 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|