Re: Invalid Transactions in Commit Blocks
Tsvetan Georgiev
Hi Tomás, The transactions are validated and then committed by the peers. The transactions that are invalid are not committed and their content will not change the world state (the KVS): https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html - point 5 in particular... The HLF SDKs have the APIs to retrieve the transactions from a block and check if valid or invalid. You can walk the blocks if you need a full ledger scan for example or if you need to dynamically react you can use the block event listener. For Java SDK you can look at https://github.com/hyperledger/fabric-sdk-java/blob/master/src/main/java/org/hyperledger/fabric/sdk/BlockInfo.java For NodeJs SDK you may check https://hyperledger.github.io/fabric-sdk-node/release-2.2/global.html#ProcessedTransaction__anchor (https://hyperledger.github.io/fabric-sdk-node/release-2.2/BlockDecoder.html) Both SDKs provide a way to check if a transaction within a block is validated or invalidated by the peer.
---- On Fri, 19 Feb 2021 15:28:10 -0500 Tomás Peixinho <tom.peixinho@...> wrote ----
|
|||||||
|