go-blockchain/p2p
Claude c488ef8816
test(p2p): integration test for chain request and block fetch
Performs handshake, REQUEST_CHAIN with genesis hash, reads
RESPONSE_CHAIN_ENTRY, then REQUEST_GET_OBJECTS with the first block
hash and verifies RESPONSE_GET_OBJECTS returns a non-empty block blob.

Also fixes the existing handshake test return code check — the C++
daemon handler returns 1 (not 0) on success.

Co-Authored-By: Charon <charon@lethean.io>
2026-02-21 21:17:54 +00:00
..
commands.go feat(p2p): CORE_SYNC_DATA type and command ID constants 2026-02-20 19:34:12 +00:00
handshake.go feat(p2p): handshake command with NodeData and peerlist decoding 2026-02-20 19:41:25 +00:00
handshake_test.go fix(p2p): correct network IDs and serialisation for C++ daemon compat 2026-02-21 21:17:48 +00:00
integration_test.go test(p2p): integration test for chain request and block fetch 2026-02-21 21:17:54 +00:00
ping.go feat(p2p): ping command encode/decode 2026-02-20 19:34:36 +00:00
ping_test.go feat(p2p): ping command encode/decode 2026-02-20 19:34:36 +00:00
relay.go fix(p2p): correct network IDs and serialisation for C++ daemon compat 2026-02-21 21:17:48 +00:00
relay_test.go fix(p2p): correct network IDs and serialisation for C++ daemon compat 2026-02-21 21:17:48 +00:00
sync.go feat(p2p): CORE_SYNC_DATA type and command ID constants 2026-02-20 19:34:12 +00:00
sync_test.go feat(p2p): CORE_SYNC_DATA type and command ID constants 2026-02-20 19:34:12 +00:00
timedsync.go feat(p2p): timed sync and block/tx relay command types 2026-02-20 19:41:30 +00:00