panic: interface conversion: consensus.Engine is *ethash.Ethash, not *bor.Bor
goroutine 1 [running]:
github.com/maticnetwork/bor/eth.(*EthAPIBackend).SubscribeStateEvent(0xc000336b40, 0xc0001d3da0, 0x13c0f20, 0xc00adda220)
/root/Desktop/Programs/MaticNetworks/bor/eth/api_backend.go:161 +0x8c
github.com/maticnetwork/bor/eth/filters.NewEventSystem(0xc0001ea4e0, 0x13e3b00, 0xc000336b40, 0xc00027f400, 0xae4a9a)
/root/Desktop/Programs/MaticNetworks/bor/eth/filters/filter_system.go:148 +0x2ff
github.com/maticnetwork/bor/eth/filters.NewPublicFilterAPI(0x13e3b00, 0xc000336b40, 0xc00adda100, 0x8)
/root/Desktop/Programs/MaticNetworks/bor/eth/filters/api.go:71 +0xa6
github.com/maticnetwork/bor/eth.(*Ethereum).APIs(0xc0000fa0e0, 0xc00007cb40, 0xc00027f848, 0x1)
/root/Desktop/Programs/MaticNetworks/bor/eth/backend.go:338 +0x266
github.com/maticnetwork/bor/node.(*Node).startRPC(0xc0000cc780, 0xc00007cb40, 0x0, 0x0)
/root/Desktop/Programs/MaticNetworks/bor/node/node.go:284 +0x33f
github.com/maticnetwork/bor/node.(*Node).Start(0xc0000cc780, 0x0, 0x0)
/root/Desktop/Programs/MaticNetworks/bor/node/node.go:239 +0xc6b
github.com/maticnetwork/bor/cmd/utils.StartNode(0xc0000cc780)
/root/Desktop/Programs/MaticNetworks/bor/cmd/utils/cmd.go:67 +0x2f
main.startNode(0xc0002ae160, 0xc0000cc780)
/root/Desktop/Programs/MaticNetworks/bor/cmd/bor/main.go:328 +0x70
main.geth(0xc0002ae160, 0x0, 0x0)
/root/Desktop/Programs/MaticNetworks/bor/cmd/bor/main.go:316 +0x11c
gopkg.in/urfave/cli%2ev1.HandleAction(0xf841e0, 0x11f97c0, 0xc0002ae160, 0xc00007aa20, 0x0)
/root/go/pkg/mod/gopkg.in/urfave/[email protected]/app.go:490 +0xc8
gopkg.in/urfave/cli%2ev1.(*App).Run(0xc0002a41a0, 0xc0001181b0, 0x1, 0x1, 0x0, 0x0)
/root/go/pkg/mod/gopkg.in/urfave/[email protected]/app.go:264 +0x5dd
main.main()
/root/Desktop/Programs/MaticNetworks/bor/cmd/bor/main.go:301 +0x55
I also tried to run it by "npm run bor:simulate" but got an error. The error is shared below -
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /root/Desktop/Programs/MaticNetworks/bor/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/root/Desktop/Programs/MaticNetworks/bor/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-06-03T10_25_53_143Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'bor:simulate' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: ENOENT: no such file or directory, open '/root/Desktop/Programs/MaticNetworks/bor/package.json'
5 verbose cwd /root/Desktop/Programs/MaticNetworks/bor
6 verbose Linux 5.4.0-kali2-amd64
7 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "bor:simulate"
8 verbose node v10.20.1
9 verbose npm v6.14.4
10 error code ENOENT
11 error syscall open
12 error path /root/Desktop/Programs/MaticNetworks/bor/package.json
13 error errno -2
14 error enoent ENOENT: no such file or directory, open '/root/Desktop/Programs/MaticNetworks/bor/package.json'
15 error enoent This is related to npm not being able to find a file.
16 verbose exit [ -2, true ]
Kindly take a look and guide me how to run this instance.