Skip to content

Commit

Permalink
solve ts complain + ignore src/tests/configs/nodes.json
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed Apr 18, 2022
1 parent f351348 commit d4e66d0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 44 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ creds/*
!creds/scheduler_creds
hsm_secret

src/tests/configs/*
src/tests/configs/nodes.json
src/tests/configs/
6 changes: 3 additions & 3 deletions dist/src/grpc/lightning.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/grpc/lightning.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/grpc/lightning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fs from 'fs'
import * as grpc from 'grpc'
import { sleep } from '../helpers'
import * as sha from 'js-sha256'
import * as crypto from 'crypto'
// import * as crypto from 'crypto'
import constants from '../constants'
import { getMacaroon } from '../utils/macaroon'
import { loadConfig } from '../utils/config'
Expand Down Expand Up @@ -289,8 +289,8 @@ export function keysend(
sphinxLogger.info('keysend', logging.Lightning)
return new Promise(async function (resolve, reject) {
try {
const randoStr = crypto.randomBytes(32).toString('hex')
const preimage = ByteBuffer.fromHex(randoStr)
//const randoStr = crypto.randomBytes(32).toString('hex')
//const preimage = ByteBuffer.fromHex(randoStr)
const dest_custom_records = {
//[`${LND_KEYSEND_KEY}`]: preimage,
}
Expand Down
35 changes: 0 additions & 35 deletions src/tests/configs/nodes.json

This file was deleted.

0 comments on commit d4e66d0

Please sign in to comment.