Switch between json log parsing and anchor event parsing using transaction slot.
This commit is contained in:
parent
05eb106a77
commit
2de3415975
File diff suppressed because it is too large
Load Diff
|
@ -110,7 +110,7 @@ async function processMangoTransactions(
|
|||
let res;
|
||||
try {
|
||||
res = await client.query(
|
||||
'select transaction, signature from ' +
|
||||
'select transaction, slot, signature from ' +
|
||||
schema +
|
||||
".transactions where process_state = 'ready for parsing' and program_pk = $1 limit $2",
|
||||
[address, limit],
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -63,6 +63,10 @@ async function processMangoTransactions(rawTransactionsPool, schema, limit) {
|
|||
mangoProgramId,
|
||||
);
|
||||
|
||||
let errorProcessStates = processStates.filter(e => e.process_state === 'parsing error');
|
||||
console.log(errorProcessStates.length + ' parsing errors')
|
||||
|
||||
|
||||
// Set a breakpoint here to examine parsed transactions
|
||||
console.log(parsedTransactions);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue