Transaction Validation when a Peer Committing a Block

Introduction

This article is to make observations when more than one transaction acts on the same state in the same block. The result is different depending on whether the transaction reads and updates that state or not in the function. This has implications in our blockchain application design. For demonstration purposes we create a simple chaincode implementing two functions updating the state. One requires state reading and another does not. We will observe the result and make some discussion on it.

--

--

--

Visit http://www.ledgertech.biz/kcarticles.html for all my works. Reach me on https://www.linkedin.com/in/ktam1/ or follow me @kctheservant in Twitter.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Proof of Feedback Beta Version

Smart Blockchain? More like Bollockschain

EthCC Voices: Will Harbone, Founder & CEO of DeversiFi

Blockchain In Agriculture

The Intuition Fabric: If A.I. is the New Electricity then Blockchain is the New Light Bulb

March 2 PlanetWatch AMA recap

bountyblok NFT Drop — Deploy, distribute and manage NFTs on WAX Mainnet

Bonding Curve Sale

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
KC Tam

KC Tam

Visit http://www.ledgertech.biz/kcarticles.html for all my works. Reach me on https://www.linkedin.com/in/ktam1/ or follow me @kctheservant in Twitter.

More from Medium

CEO Insights: Ayman Abdallah, One & Zeros

Why Software Engineering?

VARC System Architecture

Mission Landing: BobHacks Recap!