-
Notifications
You must be signed in to change notification settings - Fork 31
Home
tuxcanfly edited this page Oct 13, 2014
·
5 revisions
Launch btcsim:
btcsim
You should see some information from btcwallet connecting the the chain server, generating addresses, then the miner mining blocks:
2014/10/01 15:38:32 Starting node on simnet...
2014/10/01 15:38:33 actor-18557: Creating wallet addresses...
100/100
2014/10/01 15:38:39 Starting miner on simnet...
2014/10/01 15:38:39 miner: Generating 20000 blocks...
Since the simnet blockchain starts out with zero difficulty, it doesn't give enough time between the blocks to control mining. We want to simulate the blockchain structure as per the input, so we need to have a fine grained control over the mining such that only one block is generated when toggling the miner.
Once the required number of blocks are generated, the mining is stopped and the required number of utxos and transactions are generated:
2014/10/01 15:41:40 19999: block# XXX: no of utxos: 19988, no of transactions: 1
2014/10/01 15:41:40 Generating 10000 transactions ...
2014/10/01 15:46:30 20000: block# XXX: no of utxos: 18989, no of transactions: 1001
After all the rows of the input CSV are processed, the simulations stops automatically and the stats are displayed:
788/11951^C2014/10/01 15:25:48 Received SIGINT (Ctrl+C). Shutting down...
2014/10/01 15:25:48 miner: Shutdown
2014/10/01 15:25:48 actor-18557: Shutdown
2014/10/01 15:25:48 node: Shutdown
2014/10/01 15:25:48 Average transactions per sec: 53.23
2014/10/01 15:25:48 Maximum transactions per block: 5219