0

I am trying to implement a token in Fabric with low TPS. According to high-troughput sample I must consider key collisions and try to avoid using the same keys for accounts. Due to the difficulty of implementation, I want to know that is it necessary to implement high-throughput? For how many TPS I need to implement that?

mahdi
  • 598
  • 5
  • 22

1 Answers1

0

If a transaction with a new value of an asset is submitted before the previous one hasn't been committed yet to the ledger, an MVCC conflict occurs. This happens because multiple transactions are trying to update at the same asset before they are committed to the ledger.

If your solution needs to update an asset at the same time you should follow the best practice suggested in the high-throughput chaincode example by using composite keys.

Leonardo Carraro
  • 1,532
  • 1
  • 11
  • 24