Commit 67ebf3a
feat(spv): flush header index on shutdown and after header sync (#197)
* feat(spv): flush headers on shutdown
* move fn lower in the impl
* refactor: `MultiPeerNetworkManager` -> `PeerNetworkManager` (#184)
* refactor: `MultiPeerNetworkManager` -> `PeerNetworkManager`
* Fix formatting and apply review
* feat: Update ffi headers (#183)
* feat(spv): broadcast transaction (#180)
* fix: Fix `PeerNetworkManager` cast in `broadcast_transaction` (#185)
PR #180 used `MultiPeerNetworkManager`, this was renamed in #183 which was merged before #180 but after its CI run.
* fix: Use non-blocking `TcpStream` in `dash-spv::network::TcpConnection` (#188)
* refactor: Improve SPV shutdown handling with `CancellationToken` (#187)
* refactor: `TcpConnection` -> `Peer` and `ConnectionPool` -> `PeerPool` (#190)
* fix: Locking issue after #190 (#191)
#190 removed the read timeouts of the `Peer::receive_message` which currently leads to a lockup of the peer because the write lock is held while waiting for the message. Needs some more refactoring but this works for now.
* fix: More follow-up to #190 (#193)
The sleep timeout branch introduced in #191 returns an `Err(NetworkError::Timeout)` which leads to a misbehavior update below in the `msg_result` match and eventually in a peer ban. This shouldn't happen because the `sleep` timing out only means that there is no data available right now. Instead, it now returns `Ok(None)` which will just keep things going.
* flush after mn list sync too
* move flush to after header sync instead of mnlist
* fix
---------
Co-authored-by: Kevin Rombach <35775977+xdustinface@users.noreply.github.com>1 parent 312734a commit 67ebf3a
File tree
2 files changed
+54
-2
lines changed- dash-spv/src
- storage/disk
- sync/sequential
2 files changed
+54
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
439 | 446 | | |
440 | 447 | | |
441 | 448 | | |
| |||
701 | 708 | | |
702 | 709 | | |
703 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
704 | 734 | | |
705 | 735 | | |
706 | 736 | | |
| |||
859 | 889 | | |
860 | 890 | | |
861 | 891 | | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
862 | 916 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
397 | 395 | | |
398 | 396 | | |
399 | 397 | | |
| |||
0 commit comments