Skip to content

Commit

Permalink
add acceptedTx in the debugQueueInfo and remove unnecessary POQLS rel…
Browse files Browse the repository at this point in the history
…ated info
  • Loading branch information
thantsintoe committed Aug 13, 2024
1 parent f90aaf3 commit 255192a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/state-manager/TransactionQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8482,6 +8482,7 @@ getDebugStuckTxs(opts): unknown {
getDebugQueueInfo(queueEntry: QueueEntry): any {
return {
txId: queueEntry.acceptedTx.txId,
tx: queueEntry.acceptedTx,
logID: queueEntry.logID,
nodeId: Self.id,
state: queueEntry.state,
Expand All @@ -8500,18 +8501,18 @@ getDebugStuckTxs(opts): unknown {
dataSharedTimestamp: queueEntry.dataSharedTimestamp,
firstVoteTimestamp: queueEntry.firstVoteReceivedTimestamp,
lastVoteTimestamp: queueEntry.lastVoteReceivedTimestamp,
firstConfirmationsTimestamp: queueEntry.firstConfirmOrChallengeTimestamp,
robustBestConfirmation: queueEntry.receivedBestConfirmation,
robustBestVote: queueEntry.receivedBestVote,
robustBestChallenge: queueEntry.receivedBestChallenge,
completedRobustVote: queueEntry.robustQueryVoteCompleted,
completedRobustChallenge: queueEntry.robustQueryConfirmOrChallengeCompleted,
// firstConfirmationsTimestamp: queueEntry.firstConfirmOrChallengeTimestamp,
// robustBestConfirmation: queueEntry.receivedBestConfirmation,
// robustBestVote: queueEntry.receivedBestVote,
// robustBestChallenge: queueEntry.receivedBestChallenge,
// completedRobustVote: queueEntry.robustQueryVoteCompleted,
// completedRobustChallenge: queueEntry.robustQueryConfirmOrChallengeCompleted,
txDebug: queueEntry.txDebug,
executionDebug: queueEntry.executionDebug,
waitForReceiptOnly: queueEntry.waitForReceiptOnly,
ourVote: queueEntry.ourVote || null,
receipt2: this.stateManager.getReceipt2(queueEntry) || null,
uniqueChallenges: queueEntry.uniqueChallengesCount,
// uniqueChallenges: queueEntry.uniqueChallengesCount,
collectedVoteCount: queueEntry.collectedVoteHashes.length,
simpleDebugStr: this.app.getSimpleTxDebugValue ? this.app.getSimpleTxDebugValue(queueEntry.acceptedTx?.data) : "",
}
Expand Down

0 comments on commit 255192a

Please sign in to comment.