andrecronje / CreditsLoadTest

Tests the TPS Load of the Credits Cryptocurrency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CreditsLoadTest

Tests the TPS Load of the Credits Cryptocurrency (http://www.credits.com)

Credits is a Cryptocurrency that claims it will be the first to reach 1 million tps first with the potential of scaling even higher.

Description

This was a quick dirty build just for the purpose of testing the credits network.

It is hooked into the credits desktop wallet api for easy interaction with the thrift protocal credits uses for their node api.

I have created a custom socket client that constructs raw thrift transaction packets and bundles them by absuing the tcp network congestion to send multiple transactions within one packet.

This allows for me to flood more transactions to the node. This does use a replay attack as transactions can be send multiple times. I went down this route to minimize CPU usage building transaction packets (This will need to be changed when fixed).

Installation

To build this project you can import it into the eclipse IDE (General -> Existing Projects into Workspace)

Make sure you point the ip address in the config file to look at the ip of your node and allow the ip/port entry in your firewall or portforward the entry if you are not running it on the local node machine.

Additional Info

There is currently a block limit of 256 transactions per block, this can be increased by editing the bat file of the node.

I have managed to get over 300 transactions per block and around 1.5k tps with only one node. (Sending from New Zealand to America)

There are still quite a few bugs in the credits build.

A few include: Replay attack, 0 CS Transactions, Address funding errors and more.

The larger bugs are reported directly to the development team.

About

Tests the TPS Load of the Credits Cryptocurrency


Languages

Language:Java 100.0%