mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
feat(v5): Adding v5 route
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
'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
|
||||
}
|
||||
Reference in New Issue
Block a user