2020-02-16 06:38:25 -08:00
|
|
|
'use strict'
|
2019-05-31 08:42:57 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read more about panda here: https://panda-suite.github.io/
|
|
|
|
|
*/
|
2020-02-16 06:38:25 -08:00
|
|
|
const panda = require('pandacash-core')
|
2019-05-31 08:42:57 -07:00
|
|
|
|
|
|
|
|
const runLocalNode = done => {
|
|
|
|
|
const server = panda.server({
|
|
|
|
|
// always the same mnemonic
|
|
|
|
|
// mnemonic: "cigar magnet ocean purchase travel damp snack alone theme budget wagon wrong",
|
|
|
|
|
seedAccounts: true,
|
|
|
|
|
enableLogs: false,
|
|
|
|
|
debug: false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
server.listen({
|
|
|
|
|
port: 48332,
|
2020-02-16 06:38:25 -08:00
|
|
|
walletPort: 48333
|
2019-05-31 08:42:57 -07:00
|
|
|
}, (err, pandaCashCore) => {
|
|
|
|
|
if (err) return console.error(err)
|
|
|
|
|
|
|
|
|
|
done()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
runLocalNode
|
|
|
|
|
}
|