Skip to content
Snippets Groups Projects
Select Git revision
  • workshop-poc default protected
  • streamchain-paper
  • fabric-release-1.4
3 results

streamchain

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    yacovm authored
    The state transfer module receives blocks from either the orderer
    or other peers, and puts them into a payload buffer for reordering so
    they would enter the ledger in-order.
    
    In some cases:
    - If the peer joined late and it receives blocks from peers starting from
      index i where the ledger is missing indices [j, i] for some j<i
      and the rate of block reception from peers is very fast
    - If the ledger is "stuck" (i.e file system full, etc.) and cannot advance
    
    This buffer would overpopulate.
    
    This commit addresses this, and adds a maximum distance constant
    that if the difference between the ledger height and the sequence
    of the block that is received is greater than this constant,
    the block is dropped.
    
    Change-Id: Ia1ba8966ea6d211c5d1b7ddd84a4fad34af797d4
    Signed-off-by: default avataryacovm <yacovm@il.ibm.com>
    ecda4c2d
    History
    Name Last commit Last update