Repository navigation
Commit 718e2d1
Fix darkside v5 txid computation and tree state nil dereference
darksideSetTxID applied SHA256d to all transactions including v5, producing
incorrect txids. Now that ParseFromSlice computes v5 txids via ZIP 244,
skip the SHA256d override for v5 transactions. (fixes #456)
DarksideRemoveTreeState crashed with a nil pointer dereference when
removing a tree state at a non-existent height or hash. Add nil checks
to return an error instead of panicking. (fixes #466)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b71b2c0 commit 718e2d1
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
938 | 942 | | |
939 | 943 | | |
940 | 944 | | |
941 | 945 | | |
942 | 946 | | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
943 | 950 | | |
944 | 951 | | |
945 | 952 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
649 | 654 | | |
650 | 655 | | |
651 | 656 | | |
| |||
0 commit comments