Skip to content

Commit

Permalink
REF: refactored inserts into raw query batch inserts (much faster)
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Sep 8, 2024
1 parent 2d053f6 commit 79ec29c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/controller/GroundController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const ADDRESS_IGNORE_LIST = [
"bc1qmhq4sgtchfgh6ul75x3rsuegt55mef0zx3ehm2",
"bc1qws8yeyfxzykuq7tevwwxezyv3ad99emlyy9uls",
"bc1q42kvqt0e3f27qhd2ucnprarl5ywpuj7tu0h9v2",
"bc1q5k9tyr30xhmvmnj2z2cx0psprz44ksnmpuw7q8",
];

let connection: DataSource;
Expand Down
2 changes: 1 addition & 1 deletion src/worker-blockprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ dataSource
const responseGetblockcount = await client.request("getblockcount", []);

if (+responseGetblockcount.result <= +keyVal.value) {
await new Promise((resolve) => setTimeout(resolve, 60000, false));
await new Promise((resolve) => setTimeout(resolve, 10_000, false));
continue;
}

Expand Down

0 comments on commit 79ec29c

Please sign in to comment.