Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Feb 22, 2024
1 parent 409cf81 commit 435e924
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,7 @@ const dataModule = {
logInfo("dataModule", "actions.syncENSEvents.getLogs: " + fromBlock + " - " + toBlock + " " + section);
try {
let topics = null;
let logs = null;
if (section == 0) {
topics = [[
'0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
Expand All @@ -1174,11 +1175,14 @@ const dataModule = {
selectedAddresses,
null
];
logs = await provider.getLogs({ address: null, fromBlock, toBlock, topics });
await processLogs(fromBlock, toBlock, section, logs);
} else if (section == 1) {
topics = [ ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'], null, selectedAddresses ];
logs = await provider.getLogs({ address: null, fromBlock, toBlock, topics });
await processLogs(fromBlock, toBlock, section, logs);
}
const logs = await provider.getLogs({ address: null, fromBlock, toBlock, topics });
await processLogs(fromBlock, toBlock, section, logs);
// const logs = await provider.getLogs({ address: null, fromBlock, toBlock, topics });
} catch (e) {
const mid = parseInt((fromBlock + toBlock) / 2);
await getLogs(fromBlock, mid, section, selectedAddresses, processLogs);
Expand Down Expand Up @@ -1208,6 +1212,7 @@ const dataModule = {
for (let section = 0; section < 2; section++) {
await getLogs(startBlock, parameter.blockNumber, section, selectedAddresses, processLogs);
}
// await getLogs(startBlock, parameter.blockNumber, 2, selectedAddresses, processLogs);
}
logInfo("dataModule", "actions.syncENSEvents END");
},
Expand Down

0 comments on commit 435e924

Please sign in to comment.