Merged Bitcoin commit c40a5aaaf484855a4350fd702e8e72fd21a68155
Truncate oversize 'tx' messages before relaying/storing.

Fixes a memory exhaustion attack on low-memory peers.