Commit 7c716cc
committed
Merge #190: Implement Electrum Protocol v1.6
638da77 Return `UnexpectedEof` error if we read 0 bytes from stream (Elias Rohrer)
077c8ef Mark `relay_fee` as deprecated in protocol v1.6+ (Elias Rohrer)
67e8fb0 Add `transaction_broadcast_package` method for package relay (Elias Rohrer)
1c0416f Support v1.6 `block_headers` response format with backwards compatibility (Elias Rohrer)
1dbd462 Add optional `EstimationMode` parameter to `estimate_fee` (Elias Rohrer)
b708b0c Add `mempool_get_info` method for v1.6 mempool fee information (Elias Rohrer)
8ff9347 Automatically negotiate protocol version on connect (Elias Rohrer)
45afc7c Drop `test_local_timeout` test case (Elias Rohrer)
41cb8ac Switch to use a Electrum server supporting v1.6 in tests (Elias Rohrer)
Pull request description:
Closes #189.
I asked Claude Code to implement the changes necessary to update to the recently released [Electrum Protocol v1.6](https://electrum-protocol.readthedocs.io/en/latest/protocol-changes.html#version-1-6).
Putting in draft for now until I got initial feedback (cc `oleonardolima` `ValuedMammal`). We also still need to change the test setup to a v1.6-compatible server to actually run the new tests against.
ACKs for top commit:
ValuedMammal:
ACK 638da77
oleonardolima:
tACK 638da77
luisschwab:
tACK 638da77
Tree-SHA512: fa0b215275fd559f488f8c35ba26acbb7333aa2b465473983fc080781c5cee61a6b6ea071a53433e03a28d08f12fcd9d28fccf7d1e2ae527972841a9dbbeeba16 files changed
Lines changed: 404 additions & 123 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
| |||
172 | 179 | | |
173 | 180 | | |
174 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
175 | 186 | | |
176 | 187 | | |
177 | 188 | | |
| |||
241 | 252 | | |
242 | 253 | | |
243 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
244 | 270 | | |
245 | 271 | | |
246 | 272 | | |
| |||
268 | 294 | | |
269 | 295 | | |
270 | 296 | | |
271 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
272 | 301 | | |
273 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
274 | 307 | | |
275 | 308 | | |
276 | 309 | | |
| |||
370 | 403 | | |
371 | 404 | | |
372 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
373 | 418 | | |
374 | 419 | | |
375 | 420 | | |
| |||
398 | 443 | | |
399 | 444 | | |
400 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
401 | 452 | | |
402 | 453 | | |
403 | 454 | | |
| |||
449 | 500 | | |
450 | 501 | | |
451 | 502 | | |
452 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
453 | 508 | | |
454 | 509 | | |
455 | 510 | | |
| |||
572 | 627 | | |
573 | 628 | | |
574 | 629 | | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
575 | 637 | | |
576 | 638 | | |
577 | 639 | | |
| |||
607 | 669 | | |
608 | 670 | | |
609 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
610 | 676 | | |
611 | 677 | | |
612 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
325 | 333 | | |
326 | 334 | | |
327 | 335 | | |
| |||
362 | 370 | | |
363 | 371 | | |
364 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
365 | 378 | | |
366 | 379 | | |
367 | 380 | | |
| |||
407 | 420 | | |
408 | 421 | | |
409 | 422 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | 423 | | |
0 commit comments