Welcome to the Linux Foundation Forum!

Understanding the World State (Example)

Why the version for CashInLockBox is not 1 for the first transaction and 2 for the second transaction?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 193

    @STBoo. Hello great question. The counter starts at Zero because the state has no changes. The counter starts at the first changed state. The section in the text in Chapter 6 ,The Ledger a Close Look , describes this in details. You are making great progress!

  • Posts: 8
    edited March 2021

    @Bobbijn thanks for your reply. The counter for the version starts from Zero, however, in the course material, the version for CashInLockBox is still remains as 0 after the first transaction. The version for CashInLockBox in the course material as below

    First transaction -> version 0
    Second transaction -> version 1
    Third transaction -> version 3
    Fourth transaction -> version 4

    If the above were correct, appreciated if you can explain how the version change from 1 to 3 from second transaction to third transaction?

  • Posts: 2,302

    @STBoo We have corrected this typo. Thank you for flagging it.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training