ooibc88 / blockbench

BLOCKBENCH: A Framework for Analyzing Private Blockchains. Blockbench contains workloads for measuring the data processing performance, and workloads for understanding the performance of different layers of Blockchain systems.
https://www.comp.nus.edu.sg/~dbsystem/fabricsharp/#/blockbench
Apache License 2.0
391 stars 174 forks source link

help in traverse pendingtx #27

Open xiaohua0921 opened 6 years ago

xiaohua0921 commented 6 years ago

I found there have value " : " in pendingtx , so I look over the code " (*pendingtx_)[txn_hash] = start_time; " . I print the txn_hash , and found the following problem :

image

I randomly choose fromaddresses to deploy smart contracts and send transactions , but in this image , you can find the txn_hash is null in somtimes by same address . I can't understand it.

ug93tad commented 6 years ago

what are you trying to do?

xiaohua0921 commented 6 years ago

In the client log file , I find the value of latency always is 0 . I think it is Incorrect . So I want to find the reason of error .

xiaohua0921 commented 6 years ago

After testing for different number of threads , I found when the number of threads is 1 , all transactions can return an effective hash value,but when the number of threads is other values , there have many transactions return a NULL value . I run blockbench in virtual machine,and I only distribute one cores per machine . May be I should distribute more core to solve this problem ?

xiaohua0921 commented 6 years ago

Sorry , I modify the above statement ,I have distributed 2 cores per machine . And I try to test run blockbench with two peer , four threads per peer . But there still have this problem , when exec the request , the return hash value is null . image