cothority
cothority copied to clipboard
Coins simulation doesn't work when tx count is high
When running the TransferCoins simulation on mininet with 10 G3 machines, the simulation fails to read all the blocks. It would always print:
1 : ( main.(*SimulationService).Run: 230) - [2034] account has 10080
1 : ( main.(*SimulationService).Run: 230) - [2035] account has 10080
1 : ( main.(*SimulationService).Run: 230) - [2036] account has 10080
and do nothing else (I've waited much longer than the block interval).
The simulation configuration is shown below.
Simulation = "TransferCoins"
Servers = 10
Bf = 4
Rounds = 1
RunWait = "6000s"
Suite = "Ed25519"
# Keep the different columns in case someboday wants to run another battery
# of tests
Keep, Transactions, BatchSize, Hosts, Delay, BlockInterval
true, 20000, 10, 20, 10, "5s"
I suggest to find the minimal number of servers and hosts that is needed to reproduce this problem. Then try to understand what is happening in the startPolling
. If it's running, then most likely the transactions are getting lost, find out why. If it's stuck, find out why it's stuck, maybe the CollectTx
protocol is stuck.
Most likely it will be fixed by https://github.com/dedis/cothority/issues/1409, which is after v3.