1

While doing any transaction in private network, is it necessary for one node to keep on mining?.

I was trying to implement to deploy smart contract and transact in ethereum private network with the help of web3j java library. When there was no mining happening, my java transaction code was error out and it was saying transaction exceeds time limit of 600 seconds. But when I started mining and run the program, it was successful. But because of these two process, my system became very slow.

What is the reason behind these scenario? Any suggestion?

marked as duplicate by Ismael, Achala Dissanayake, Raghav Sood, Henk, eth Aug 26 '18 at 5:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The tnx was only confirmed when it was include in a block sealing; then you need to start mining. For private chain, you can have another option to use Clique POA consensus then your system will be free without running ton of calculation for PoW – Ha ĐANG Aug 21 '18 at 10:15
  • @HaĐANG Will you refer some docs from where I can learn how to work with PoA. And please write your comment as answer if it is a final one. – kaushik_pm Aug 21 '18 at 13:00
  • You can refer to this; it already implemented in ethereum code base medium.com/@collin.cusce/… – Ha ĐANG Aug 21 '18 at 13:35
  • @HaĐANG this one is for Linux OS. Will it work on windows OS? – kaushik_pm Aug 21 '18 at 13:38
  • Yes, It works for windows OS also – Ha ĐANG Aug 21 '18 at 13:45