Explore Courses Blog Tutorials Interview Questions
0 votes
in Blockchain by (12.7k points)

There is 'gas' in Ethereum and Bitcoin doesn't support loop at all, I am curious how does Hyperledger Fabric avoid infinite loop?

1 Answer

0 votes
by (29.5k points)

Hyperledger Fabric avoids the infinite loop by setting a timeout for chaincode execution. The chaincode container will be killed if the transaction does not execute within the configured timeout as specified by the chaincode.executetimeout property.

Browse Categories