Research Article

A Transaction Traffic Control Approach Based on Fuzzy Logic to Improve Hyperledger Fabric Performance

Algorithm 3

Transaction control method.
Input (Acceptance Rate, Drop Tx Threshold, Delay Tx Threshold, Accept Tx Threshold)
Begin
  Set the Acceptance Rate
  Set the Drop Tx Threshold
  Set the Wait Tx Threshold
  Set the Accept Tx Threshold
  IfAcceptance Rate is less than the Drop Tx Threshold then
    Drop the transaction
  Else IfAcceptance Rate is greater than the Drop Tx Threshold and less than the Wait Tx Threshold then
    Delay the transaction
  Else IfAcceptance Rate is greater than the Acceptance Tx Threshold then
    Accept the transaction
  Else
    Throw an error
End