ExamGecko
Question list
Search
Search

Related questions











Question 48 - CBDH discussion

Report
Export

_________is called to update or query the ledger in a proposal transaction. This is called by the chaincode.

A.
Initialize
Answers
A.
Initialize
B.
Init
Answers
B.
Init
C.
Update
Answers
C.
Update
D.
Invoke
Answers
D.
Invoke
Suggested answer: D

Explanation:

Invoke is called to update or query the ledger in a proposal transaction. Init is called during Instantiate transaction after the chaincode container has been established for the first time, allowing the chaincode to initialize its internal data. Invoke is called to update or query the ledger in a proposal transaction. Updated state variables are not committed to the ledger until the transaction is committed.

Reference: https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#Chaincode

asked 16/09/2024
john rosselot
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first