-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'TT-1205-investigate-and-fix-failing-ocr-2-tests-in-comp…
…atibility-pipeline' of github.com:smartcontractkit/chainlink into TT-1205-investigate-and-fix-failing-ocr-2-tests-in-compatibility-pipeline
- Loading branch information
Showing
71 changed files
with
1,893 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
#added Added an auto-purge feature to the EVM TXM that identifies terminally stuck transactions either through a chain specific method or heurisitic then purges them to unblock the nonce. Included 4 new toml configs under Transactions.AutoPurge to configure this new feature: Enabled, Threshold, MinAttempts, and DetectionApiUrl. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package types | ||
|
||
import ( | ||
"context" | ||
|
||
feetypes "github.com/smartcontractkit/chainlink/v2/common/fee/types" | ||
"github.com/smartcontractkit/chainlink/v2/common/types" | ||
) | ||
|
||
// StuckTxDetector is used by the Confirmer to determine if any unconfirmed transactions are terminally stuck | ||
type StuckTxDetector[ | ||
CHAIN_ID types.ID, // CHAIN_ID - chain id type | ||
ADDR types.Hashable, // ADDR - chain address type | ||
TX_HASH, BLOCK_HASH types.Hashable, // various chain hash types | ||
SEQ types.Sequence, // SEQ - chain sequence type (nonce, utxo, etc) | ||
FEE feetypes.Fee, // FEE - chain fee type | ||
] interface { | ||
// Uses either a chain specific API or heuristic to determine if any unconfirmed transactions are terminally stuck. Returns only one transaction per enabled address. | ||
DetectStuckTransactions(ctx context.Context, enabledAddresses []ADDR, blockNum int64) ([]Tx[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, SEQ, FEE], error) | ||
// Loads the internal map that tracks the last block num a transaction was purged at using the DB state | ||
LoadPurgeBlockNumMap(ctx context.Context, addresses []ADDR) error | ||
// Sets the last purged block num after a transaction has been successfully purged with receipt | ||
SetPurgeBlockNum(fromAddress ADDR, blockNum int64) | ||
// Returns the error message to set in the transaction error field to mark it as terminally stuck | ||
StuckTxFatalError() *string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.