mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 16:05:10 +00:00
event handler strategy changes
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
This commit is contained in:
parent
31b08b9151
commit
fc769cfcb0
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ export const getGateway = async (): Promise<Gateway> => {
|
|||
eventHandlerOptions: {
|
||||
commitTimeout: config.commitTimeout,
|
||||
endorseTimeout: config.endorseTimeout,
|
||||
strategy: DefaultEventHandlerStrategies.NONE,
|
||||
strategy: DefaultEventHandlerStrategies.PREFER_MSPID_SCOPE_ANYFORTX,
|
||||
},
|
||||
queryHandlerOptions: {
|
||||
timeout: 3,
|
||||
|
|
@ -149,7 +149,7 @@ export const submitTransaction = async (
|
|||
// Store the transaction details and set the event handler in case there
|
||||
// are problems later with commiting the transaction
|
||||
await storeTransactionDetails(redis, txnId, txnState, txnArgs, timestamp);
|
||||
|
||||
txn.setEventHandler(DefaultEventHandlerStrategies.NONE);
|
||||
await txn.submit(...transactionArgs);
|
||||
} catch (err) {
|
||||
// If the transaction failed to endorse, there is no point attempting
|
||||
|
|
|
|||
Loading…
Reference in a new issue