mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 01:02:05 -07:00
30 lines
571 B
JavaScript
30 lines
571 B
JavaScript
"use strict"
|
|
|
|
/**
|
|
* Read more about panda here: https://panda-suite.github.io/
|
|
*/
|
|
const panda = require("pandacash-core")
|
|
|
|
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,
|
|
walletPort: 48333,
|
|
}, (err, pandaCashCore) => {
|
|
if (err) return console.error(err)
|
|
|
|
done()
|
|
})
|
|
}
|
|
|
|
module.exports = {
|
|
runLocalNode
|
|
}
|