add tx.Size() and ensure tx.Copy() copies exactly that many bytes