Bitcoin full node and query server

Dec 17, 2018

View in context in the libbitcoin Slack #general mirror.

neillm13:55
@Julian The broadcast call can only tell you if it failed (or succeeded) to broadcast the tx. There's no way to determine which nodes think it's valid from that call. You could verify the tx before broadcast, which can tell you if your node think it's valid.
J
Julian00:47
Hey Neil! Sorry for the late response. I think I might not have been very clear. I have written a client that uses libbitcoin-client to talk to a libbitcoin-server instance. When I send a transaction using transaction_pool_broadcast to that instance, wouldn't that bs server do an initial validation on my transaction and return any of the numerous error codes if it found a problem? If so, how can I distinguish any such error from an error caused by connectivity problems? (the connection between my application and my bs instance)
(edited)