Commit 85eb502
committed
2WP: Verify number of transactions in SPV proof
Use the getblockheader RPC from Bitcoin Core to verify if the number of
transactions mentioned in the SPV proof matches the number for the
block known by the Core daemon.
Inspired by bitcoin/bitcoin@6b9dc8c1 parent 621b52f commit 85eb502
File tree
6 files changed
+42
-6
lines changed- src
- primitives/bitcoin
- wallet
6 files changed
+42
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
194 | 207 | | |
195 | 208 | | |
196 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2531 | 2531 | | |
2532 | 2532 | | |
2533 | 2533 | | |
| 2534 | + | |
2534 | 2535 | | |
2535 | 2536 | | |
2536 | 2537 | | |
| |||
2546 | 2547 | | |
2547 | 2548 | | |
2548 | 2549 | | |
| 2550 | + | |
| 2551 | + | |
2549 | 2552 | | |
2550 | 2553 | | |
2551 | 2554 | | |
| |||
2561 | 2564 | | |
2562 | 2565 | | |
2563 | 2566 | | |
| 2567 | + | |
| 2568 | + | |
2564 | 2569 | | |
2565 | 2570 | | |
2566 | 2571 | | |
| |||
2580 | 2585 | | |
2581 | 2586 | | |
2582 | 2587 | | |
2583 | | - | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
2584 | 2591 | | |
2585 | 2592 | | |
2586 | 2593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3702 | 3702 | | |
3703 | 3703 | | |
3704 | 3704 | | |
3705 | | - | |
| 3705 | + | |
| 3706 | + | |
3706 | 3707 | | |
3707 | 3708 | | |
3708 | 3709 | | |
| |||
0 commit comments