1 2018-03-27 00:59:45 <ProfMac> I have a string returned by bitcoin-cli getrawtransaction TxID.  How can I turn this into a CDataStream.
 2 2018-03-27 01:52:12 <kallewoof> ProfMac: Use a transaction deserializer (I think it's defined in primitives/transaction.h)
 3 2018-03-27 01:52:31 <kallewoof> Oh wait, I misread your question.
 4 2018-03-27 09:21:07 <dbackeus_> repost from yesterday, still need help: I'm learning the bitcoin procol by implementing it from scratch in Crystal. I have version handshake working as well as am able to `getdata` on incoming `inv` to get `tx` messages back, but somehow when I send "getblocks" or "getheaders" or "getaddr" the remote peer doesn't respond at all, any ideas for what might cause it or how to troubleshoot?
 5 2018-03-27 11:28:32 <dbackeus_> I'm attempting to debug my client by running a local `bitcoind` process, however when running it in -regtest mode it doesn't appear to respond to the `version` message at all. Is that to be expected?
 6 2018-03-27 12:26:26 <dbackeus_> figured it out, different magic bytes for regtest vs testnet
 7 2018-03-27 12:27:18 <dbackeus_> so now I'm seeing my regtest node with 101 generated blocks DOES respond to "getblocks" while my testnet node still just ignores it...
 8 2018-03-27 14:36:01 <kallewoof> dbackeus: May wanna run with -debug=all -printtoconsole to see if it gives you any hints in the console when you connect
 9 2018-03-27 14:38:27 <dbackeus> kallewoof: is debug=all different from just -debug?
10 2018-03-27 14:40:03 <dbackeus> I've been running with -debug and somewhere in the ocean of block-syncing output I can see it receives my "getblocks" message but it seems to just ignore it no warnings or errors
11 2018-03-27 14:40:50 <dbackeus> only when running -regtest do I get block inv's back
12 2018-03-27 15:15:36 <ProfMac> I'm tinkering with the source, trying to understand things.  I have a string, such as that returned by getrawtransaction.  This string is presumably a result of a call not unlike
13 2018-03-27 15:15:37 <ProfMac> CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
14 2018-03-27 15:15:38 <ProfMac> ssTx << tx;
15 2018-03-27 15:15:38 <ProfMac> string strHex = HexStr(ssTx.begin(), ssTx.end());
16 2018-03-27 15:16:35 <ProfMac> Now, I want to take the string, strHex, and turn it back into CTransaction tx2;
17 2018-03-27 15:17:13 <ProfMac> I am missing the step of initializing the CDataStream from the string.