mirror of
https://github.com/btcsuite/btcd.git
synced 2026-08-13 12:32:51 +02:00
In this commit, we make the pre-verack lifecycle test count only peers that btcd has admitted and processed through version exchange. The source handshake limit can close a rapid follow-up socket while the previous disconnect is still unwinding. This made the client-side version write fail with EPIPE before the intended lifecycle path ran. We now wait for a version response from btcd, retry rejected attempts under a deadline, and still disconnect without sending verack. This preserves all 50 peerDone without peerAdd cycles while removing the scheduler-dependent admission race from the test. |
||
|---|---|---|
| .. | ||
| rpctest | ||
| bip0009_test.go | ||
| chain_test.go | ||
| csv_fork_test.go | ||
| getchaintips_test.go | ||
| invalidate_reconsider_block_test.go | ||
| log.go | ||
| main.go | ||
| p2a_test.go | ||
| prune_test.go | ||
| rawtx_test.go | ||
| README.md | ||
| reorg_test.go | ||
| rpcserver_test.go | ||
| sync_race_test.go | ||