Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S StreamChain Prototype
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • zistvan-public
  • StreamChain Prototype
  • Repository
  • streamchain
  • core
  • ledger
  • util
  • txvalidationflags.go
Find file BlameHistoryPermalink
  • Ruslan Kryukov's avatar
    [FAB-2243] Replace Tx Validation bit-array by flags · 29d7fc03
    Ruslan Kryukov authored Feb 14, 2017
    https://jira.hyperledger.org/browse/FAB-2243
    
    
    
    Switch valid flag from a boolean to an enum, so that we can indicate the reason
    for the invalidation (txid already exists, vscc validation failure
    (endorsement policy failure), mvcc validation failure, etc)
    
    This change adds invalidation reason codes, sets them in the block as a uint8
    (byte) array, and returns validation result in GetTransactionById.
    
    Change-Id: I3593bf6aa4f35bb01b14f8fb3d9950b405f84660
    Signed-off-by: default avatarRuslan Kryukov <ruslan.kryukov@ru.ibm.com>
    29d7fc03