2

I'm writing a tx relay-only node that can accept inbound connections and make outbound ones. Just for research.

What I'm seeing that on inbound nodes the initial handshake completes and the connection just hangs, I should receive invs shouldn't I?

For outbound it works great, I receive invs and redistribute to others.

Tx relay flag is set in version msg for both direction. Services field is 0. What else do I need?

2
  • Are you sure that you aren't being disconnected? If you don't have any service bits set, nodes will probably end up disconnecting from you since they are expecting their outbounds to have at least the service bits NODE_NETWORK and NODE_WITNESS.
    – Ava Chow
    Aug 3, 2023 at 1:27
  • Turns out there are a lot of scanner nodes just connected to me and asked version then just sit silently, I have set up a full node that only connected to me and to another node and I was seeing incoming invs. Thanks though!
    – Eva4684
    Aug 3, 2023 at 12:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.