tx: fix global variable assignment.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
block: avoid error by ensuring hashes and flags for non-merkleblocks.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
framer: add tx, block, and merkleblock packet sending to the framer.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
block: add block subtype - block or merkleblock.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
framer: fix typo.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
framer: fix block framing.

Signed-off-by: Fedor Indutny <fedor@indutny.com>