Skip to content

Commit e43abda

Browse files
committedApr 13, 2018
[FAB-9395] World State
This CR is for 2 glossary items: World State Current State 1. Added World State to glossary 2. Removed definition of Current State and pointed it to world state Any comments for other items in the glossary will be addressed as new jira items. Signed-off-by: pama-ibm <pama@ibm.com> Change-Id: Id66edba85acba85c38c22c86c6c70d82ce21b85e Signed-off-by: pama-ibm <pama@ibm.com>
1 parent a8ae1e2 commit e43abda

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed
 

‎docs/source/glossary.rst

+20-6
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,7 @@ that is not defined in a consortium may be added to an existing channel.
120120
Current State
121121
-------------
122122

123-
The current state of the ledger represents the latest values for all keys ever
124-
included in its chain transaction log. Peers commit the latest values to ledger
125-
current state for each valid transaction included in a processed block. Since
126-
current state represents all latest key values known to the channel, it is
127-
sometimes referred to as World State. Chaincode executes transaction proposals
128-
against current state data.
123+
See World-State_.
129124

130125
.. _Dynamic-Membership:
131126

@@ -411,5 +406,24 @@ start and initialize a chaincode on a channel. Application clients gather invoke
411406
instantiate responses from endorsing peers and package the results and endorsements
412407
into a transaction that is submitted for ordering, validation, and commit.
413408

409+
.. _World-State:
410+
411+
World State
412+
-----------
413+
414+
Also known as the “current state”, the world state is a component of the
415+
HyperLedger Fabric :ref:`Ledger`. The world state represents the latest values
416+
for all keys included in the chain transaction log. Chaincode executes
417+
transaction proposals against world state data because the world state provides
418+
direct access to the latest value of these keys rather than having to calculate
419+
them by traversing the entire transaction log. The world state will change
420+
every time the value of a key changes (for example, when the ownership of a
421+
car -- the "key" -- is transferred from one owner to another -- the
422+
"value") or when a new key is added (a car is created). As a result, the world
423+
state is critical to a transaction flow, since the current state of a key-value
424+
pair must be known before it can be changed. Peers commit the latest values to
425+
the ledger world state for each valid transaction included in a processed block.
426+
427+
414428
.. Licensed under Creative Commons Attribution 4.0 International License
415429
https://creativecommons.org/licenses/by/4.0/

0 commit comments

Comments
 (0)
Please sign in to comment.