Created
September 12, 2021 08:46
-
-
Save adityajoshi12/2e7ce25c06049cc1529e739fcc65d30c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { WorkloadModuleBase } = require('@hyperledger/caliper-core'); | |
class MyWorkload extends WorkloadModuleBase { | |
constructor() { | |
super(); | |
} | |
async initializeWorkloadModule(workerIndex, totalWorkers, roundIndex, roundArguments, sutAdapter, sutContext) { | |
await super.initializeWorkloadModule(workerIndex, totalWorkers, roundIndex, roundArguments, sutAdapter, sutContext); | |
} | |
async submitTransaction() { | |
// NOOP | |
} | |
async cleanupWorkloadModule() { | |
// NOOP | |
} | |
} | |
function createWorkloadModule() { | |
return new MyWorkload(); | |
} | |
module.exports.createWorkloadModule = createWorkloadModule; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment