简体   繁体   中英

Separate block creating for each transaction in IBM-Bluemix Hyperledger Fabric V0.6

I have created a Blockchain service in my IBM-Bluemix account and deployed my chaincode successfully.

As a test, my chaincode simply creating and fetching the Assets using stub.PutState and stub.getState .

But while checking the Blockchain tab in dashboard , I can see, for each transaction it is creating a separate block for deploy and invoke operations as below.

在此处输入图片说明

  1. Why it is not adding multiple transactions into same block and when it is considering transactions into a single block?
  2. How these blocks from 4 to 6 coming which does not have any contents? is it coming because of any errors?

I have gone through the Bluemix Doc , but didn't get a clear idea about this.

Thanks in advance.

I'm not sure about the "empty" blocks although likely they reflect the fact that there was an error in the transaction(s) in those specific blocks.

In terms of the number of transactions per block, there are two factors which determine this: - batch size - the maximum number of transactions per block - batch interval - the maximum time between blocks if the batch size is not met

I believe that we use batch size = 500 and batch interval = 1 sec in the service. So in order to see multiple transactions / block, you'll need to increase your invoke rate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM