I lost money on etoro my faultbad bitcoin trade
40 commentsDouble spending attack bitcoin stock
Last week I spent some time on collecting certain statistics e. The hardest part for me was to pick the right tool to parse the raw blockchain data. Unfortunately, the returned results bitcointools , blockchain , blockparser , etc. Next, I checked some papers on Google Scholars to find out how other people solved the problem. A paper leaded me to BitcoinArmory project, which requires a dozen of manual interventions to get installed.
I did not even attempt to install it. It has a rich documentation, developer-friendly and fully documented API and works out of the box. It is composed of a single JAR, no other requirements, stupid hassles, etc. In addition, its IRC channel at FreeNode is packed with real people that provide instant support on any Bitcoin related questions. Enough with the talk! I first included the bitcoinj Maven dependency in my pom.
Here comes the simplest part: Below, I calculate the average number of transactions per block per month. In order to appreciate the hassle-free simplicity of the bitcoinj interface, you ought to take your time and spend a couple of hours on other tools first. About the performance, for the sample blockchain dataset of size 4. Sample data composed of blocks MB From the genesis block through height , 4. Block ; import com.
NetworkParameters ; import com. PrunedException ; import com. Transaction ; import com. MainNetParams ; import com. BlockStoreException ; import java. File ; import java. ArrayList ; import java. HashMap ; import java. List ; import java.