Skip to content

Instantly share code, notes, and snippets.

@michielmulders
Last active July 30, 2019 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michielmulders/e52014dcad8d8fb9ad2a4013245d3e29 to your computer and use it in GitHub Desktop.
Save michielmulders/e52014dcad8d8fb9ad2a4013245d3e29 to your computer and use it in GitHub Desktop.
Lisk Core Startup Registration
const { Application, genesisBlockDevnet, configDevnet } = require('lisk-sdk');
const { InvoiceTransaction, PaymentTransaction } = require('./transactions/index');
const app = new Application(genesisBlockDevnet, configDevnet);
app.registerTransaction(InvoiceTransaction);
app.registerTransaction(PaymentTransaction);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment