Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #56 from ara-klaytn/errstack
Browse files Browse the repository at this point in the history
Exit code for Polygon
  • Loading branch information
praveen-kaia authored Jun 13, 2024
2 parents 1eb70f5 + ea287c1 commit 34a01e6
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion polygon-tx-latency-measurement/sendtx_polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,21 @@ try{
}
catch(err){
console.log("failed to execute main", err.toString(), err.stack)
}
}

// failed to execute. TransactionBlockTimeoutError: Transaction started at 57825013 but was not mined within 50 blocks. Please make sure your transaction was properly sent and there no pervious pending transaction for the same account. However, be aware that it might still be mined!
// Transaction Hash: 0x56de0d8949eb9e19bbe6403f10500c3f5a185db15e2bad86f14caa122899422b
// 1717655549704,137,0x56de0d8949eb9e19bbe6403f10500c3f5a185db15e2bad86f14caa122899422b,1717655557543,0,0,0,0,26576445,98,1124,TransactionBlockTimeoutError: Transaction started at 57825013 but was not mined within 50 blocks. Please make sure your transaction was properly sent and there no pervious pending transaction for the same account. However, be aware that it might still be mined!
// Transaction Hash: 0x56de0d8949eb9e19bbe6403f10500c3f5a185db15e2bad86f14caa122899422b

process.on('uncaughtException', function(err) {

const errcode = "failed to execute. TransactionBlockTimeoutError"

if (err.toString().includes(errcode)) {
console.log(err)
sendSlackMsg(`TransactionBlockTimeoutError: ${err.toString()}`)
process.exit(1);
}
}
)

0 comments on commit 34a01e6

Please sign in to comment.