Skip to content

Demo project for testing smart contracts for thousands of transactions

Notifications You must be signed in to change notification settings

Kipriz/truffle-heavy-load

Repository files navigation

Demo project for testing thousands of transactions for smart contracts.

It needs:

The project contains a very dummy lottery (see contracts/Lottery.sol) and a bunch of tests.

How to run tests:

Running ganache with automining:

ganache-cli -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat" -u 0 -u 1 --gasLimit 0x2FEFD800000 -a 100 --defaultBalanceEther 10000  > ganache.log

Running ganache with fixed block time:

ganache-cli -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat" -u 0 -u 1 --gasLimit 0x2FEFD800000 -a 100 --defaultBalanceEther 10000 --blocktime 5 > ganache.log 

PS Do not forget to run npm install to checkout all necessary deps before running tests.

About

Demo project for testing smart contracts for thousands of transactions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published