Limit tx size to 20kb

Logic ported from Bitcoin: 41e1a0d7663d479f437c779df90775fc2bbc4087