Last active
July 30, 2019 14:53
-
-
Save michielmulders/e52014dcad8d8fb9ad2a4013245d3e29 to your computer and use it in GitHub Desktop.
Lisk Core Startup Registration
This file contains 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
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