Fix #45, add limitation to transaction failure times
Read maximum_retry from configuration file