cleaned up and fixed txpool validate code.