Skip to content

Commit

Permalink
address issue with blocknotify repeated uses
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbosworth committed Oct 22, 2020
1 parent 0e8af8f commit dd05681
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Versions

## Version 6.5.2

- `increase-inbound-liquidity`: Increase default maximum wait time
- `telegram`: Improve stability of `/blocknotify`

## Version 6.5.1

- `increase-inbound-liquidity`: Fix support for recovery mode in new swap versions
Expand Down
4 changes: 2 additions & 2 deletions bos
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ prog
.option('--fast', 'Request swap server avoid batching delay')
.option('--max-deposit <max_deposit>', 'Maximum deposit amount', INT, 5e4)
.option('--max-fee <max_fee>', 'Maximum estimated fee tokens', INT, 3e4)
.option('--max-hours <max_hours>', 'Maximum hours to wait', INT, 60)
.option('--max-paths <max_paths>', 'Maximum paths to attempt', INT, 1)
.option('--max-hours <max_hours>', 'Maximum hours to wait', INT, 65)
.option('--max-paths <max_paths>', 'Maximum paths to attempt', INT, 2)
.option('--no-color', 'Mute all colors')
.option('--node <node_name>', 'Increase inbound liquidity on saved node')
.option('--recovery <recovery>', 'Recover in-progress swap')
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
"test": "tap test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/fiat/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/responses/*.js test/routing/*.js test/swaps/*.js test/wallets/*.js"
},
"version": "6.5.1"
"version": "6.5.2"
}
8 changes: 6 additions & 2 deletions telegram/start_telegram_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ module.exports = ({fs, id, lnds, logger, payments, request}, cbk) => {
});

bot.command('blocknotify', ({message, replyWithMarkdown}) => {
return handleBlocknotifyCommand({
handleBlocknotifyCommand({
request,
reply: replyWithMarkdown,
},
Expand All @@ -233,14 +233,18 @@ module.exports = ({fs, id, lnds, logger, payments, request}, cbk) => {

return;
});

return;
});

bot.command('connect', ({from, replyWithMarkdown}) => {
return handleConnectCommand({
handleConnectCommand({
from: from.id,
id: connectedId,
reply: replyWithMarkdown,
});

return;
});

bot.command('earnings', ({message, replyWithMarkdown}) => {
Expand Down

0 comments on commit dd05681

Please sign in to comment.