Skip to content

Commit f6c7fbc

Browse files
committed
[FAB-3764] Fixes the comments in ledger interface
This CR fixes the misplaced comments for function NewTxSimulator() in ledger interface Change-Id: I08bf8573e28c3ef17b2a459e3ec0cb7796e46a5a Signed-off-by: manish <[email protected]>
1 parent 9d6cec8 commit f6c7fbc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/ledger/ledger_interface.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ type PeerLedger interface {
4848
GetBlockByHash(blockHash []byte) (*common.Block, error)
4949
// GetBlockByTxID returns a block which contains a transaction
5050
GetBlockByTxID(txID string) (*common.Block, error)
51+
// GetTxValidationCodeByTxID returns reason code of transaction validation
52+
GetTxValidationCodeByTxID(txID string) (peer.TxValidationCode, error)
5153
// NewTxSimulator gives handle to a transaction simulator.
5254
// A client can obtain more than one 'TxSimulator's for parallel execution.
5355
// Any snapshoting/synchronization should be performed at the implementation level if required
54-
55-
// GetTxValidationCodeByTxID returns reason code of transaction validation
56-
GetTxValidationCodeByTxID(txID string) (peer.TxValidationCode, error)
5756
NewTxSimulator() (TxSimulator, error)
5857
// NewQueryExecutor gives handle to a query executor.
5958
// A client can obtain more than one 'QueryExecutor's for parallel execution.

0 commit comments

Comments
 (0)