Skip to content

Commit

Permalink
fix bot + add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hedi-edelbloute committed Oct 18, 2023
1 parent 748e5ce commit 223f6ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libs/ledger-live-common/src/bot/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const arg: Partial<{
arg.filter = {};
arg.disabled = {};

console.log(BOT_FILTER_CURRENCIES);

if (BOT_FILTER_CURRENCIES) {
arg.filter.currencies = BOT_FILTER_CURRENCIES.split(",");
}
Expand Down
6 changes: 6 additions & 0 deletions libs/ledger-live-common/src/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ export async function bot({ disabled, filter }: Arg = {}): Promise<void> {
const specsLogs: string[][] = [];
const specs = getSpecs({ disabled, filter });

console.log("specsLength", specs.length);
console.log(
"specs",
specs.map(spec => spec.name),
);

const timeBefore = Date.now();
const results: Array<SpecReport<any>> = await promiseAllBatched(
getEnv("BOT_MAX_CONCURRENT"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const acceptTransaction: DeviceAction<Transaction, any> = deviceActionFlow({
button: SpeculosButton.RIGHT,
},
{ title: "Address", button: SpeculosButton.RIGHT },
{ title: "MaxFee", button: SpeculosButton.RIGHT },
{ title: "Max Fees", button: SpeculosButton.RIGHT },
{
title: "Accept",
button: SpeculosButton.BOTH,
Expand Down

1 comment on commit 223f6ef

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' ($0.00) ⏲ 3.00ms

What is the bot and how does it work? Everything is documented here!

Details of the 0 mutations
Portfolio ($0.00) – Details of the 0 currencies
Spec (accounts) State Remaining Runs (est) funds?

Performance ⏲ 3.00ms

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL N/A N/A N/A N/A N/A N/A N/A N/A

What is the bot and how does it work? Everything is documented here!

Please sign in to comment.