AcalaNetwork / Acala

Acala - cross-chain DeFi hub and stablecoin based on Substrate for Polkadot and Kusama.
https://acala.network
GNU General Public License v3.0
736 stars 519 forks source link

Block production in local development network stops after block #199 #1436

Open ThunderDeliverer opened 3 years ago

ThunderDeliverer commented 3 years ago

Describe the bug Every time I run the local development network, the block stop at #199. No new blocks are mined after and every transaction that I try to do when this happens raises the following error: Error: the string "1014: Priority is too low: (383246202401776 vs 383246202401776): The transaction has too low priority to replace another transaction already in the pool." was thrown, throw an Error :)

Expected Behavior New blocks should be mined after #199 and transactions included in them.

Current Behavior After block #199 is mined, block production stops and no new transactions can be sent.

Steps to Reproduce

  1. Clone repository and run the build steps
  2. Run the network using make run or make restart
  3. Do enough transactions to reach block #199

Additional context

zjb0807 commented 3 years ago

https://github.com/paritytech/substrate/blob/c11a0bf8537abde0cf843c770f481366b964ca6f/frame/democracy/src/lib.rs#L1737 Democracy takes full block weight.

https://github.com/AcalaNetwork/Acala/blob/8e00ac60aec37d900c9106136e4fab9edca56cf3/runtime/mandala/src/lib.rs#L634

You can increase LaunchPeriod

xlc commented 3 years ago

Why democracy is taking the full weight even when there isn't proposals? Why something taking full block weight will cause issue?

zjb0807 commented 3 years ago

https://github.com/paritytech/substrate/pull/9890

Here is an empty block check that failed. https://github.com/paritytech/substrate/blob/c11a0bf8537abde0cf843c770f481366b964ca6f/client/consensus/manual-seal/src/seal_block.rs#L139-L141

xlc commented 3 years ago

Made another issue https://github.com/paritytech/substrate/issues/9892