Skip to content

Commit

Permalink
add rpc to make sidecard happy (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Jan 27, 2023
1 parent c8aa779 commit 279b58f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const handlers: Handlers = {
let finalHash: string | undefined

for (let i = 0; i < finalCount; i++) {
const block = await context.chain.newBlock({ inherent: { horizontalMessages: hrmp } }).catch((error) => {
const block = await context.chain.newBlock({ inherent: { horizontalMessages: hrmp || [] } }).catch((error) => {
throw new ResponseError(1, error.toString())
})
logger.debug({ hash: block.hash }, 'dev_newBlock')
Expand Down
3 changes: 3 additions & 0 deletions src/rpc/substrate/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import path from 'node:path'
import { Handlers } from '../shared'

const handlers: Handlers = {
system_localPeerId: async () => '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
system_nodeRoles: async () => ['Full'],
system_localListenAddresses: async () => [],
system_chain: async (context) => {
return context.chain.api.getSystemChain()
},
Expand Down

0 comments on commit 279b58f

Please sign in to comment.