minor changes - using confirmed for solana log extraction
This commit is contained in:
parent
782d8d168c
commit
e3a59ffc69
|
@ -25,7 +25,9 @@ export class HandleSolanaTransactions<T> {
|
|||
const hasError = tx.meta?.err;
|
||||
if (hasError)
|
||||
this.logger.warn(
|
||||
`Ignoring tx for program ${this.cfg.programId} in ${tx.slot} has error: ${tx.meta?.err}`
|
||||
`Ignoring tx for program ${this.cfg.programId} in ${tx.slot} has error: ${JSON.stringify(
|
||||
tx.meta?.err
|
||||
)}`
|
||||
);
|
||||
return !hasError;
|
||||
});
|
||||
|
|
|
@ -81,7 +81,7 @@ export class PollSolanaTransactions extends RunPollingJob {
|
|||
this.cfg.signaturesLimit
|
||||
);
|
||||
this.logger.debug(
|
||||
`Got ${sigs.length} signatures for address ${this.cfg.programId} between sigs ${afterSignature} and ${beforeSignature} [slots: ${range.fromSlot} - ${range.toSlot}]`
|
||||
`Got ${sigs.length} signatures for address ${this.cfg.programId} between txs ${afterSignature} and ${beforeSignature} [slots: ${range.fromSlot} - ${range.toSlot}]`
|
||||
);
|
||||
|
||||
const txs = await this.slotRepository.getTransactions(sigs);
|
||||
|
@ -163,8 +163,8 @@ export class PollSolanaTransactionsConfig {
|
|||
programId: string;
|
||||
fromSlot?: number;
|
||||
toSlot?: number;
|
||||
slotBatchSize: number = 10_000;
|
||||
signaturesLimit: number = 1_000;
|
||||
slotBatchSize: number = 1_000;
|
||||
signaturesLimit: number = 500;
|
||||
interval?: number = 5_000;
|
||||
|
||||
constructor(id: string, programId: string, commitment?: string, slotBatchSize?: number) {
|
||||
|
|
|
@ -43,7 +43,7 @@ data:
|
|||
"action": "PollSolanaTransactions",
|
||||
"config": {
|
||||
"slotBatchSize": 10000,
|
||||
"commitment": "processed",
|
||||
"commitment": "confirmed",
|
||||
"interval": 10000,
|
||||
"programId": "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5",
|
||||
"chain": "solana"
|
||||
|
@ -70,7 +70,7 @@ data:
|
|||
"action": "PollSolanaTransactions",
|
||||
"config": {
|
||||
"slotBatchSize": 10000,
|
||||
"commitment": "processed",
|
||||
"commitment": "confirmed",
|
||||
"interval": 10000,
|
||||
"signaturesLimit": 1000,
|
||||
"programId": "worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth",
|
||||
|
|
Loading…
Reference in New Issue