-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NONEVM-984][solana] - Reorg Detection + lighter rpc call #951
base: backup-branch-fee-bumping
Are you sure you want to change the base?
Conversation
@@ -570,14 +640,14 @@ func (txm *Txm) handleFinalizedSignatureStatus(sig solanaGo.Signature) { | |||
// An expired tx is one where it's blockhash lastValidBlockHeight (last valid block number) is smaller than the current block height (block number). | |||
// If any error occurs during rebroadcast attempt, they are discarded, and the function continues with the next transaction. | |||
func (txm *Txm) rebroadcastExpiredTxs(ctx context.Context, client client.ReaderWriter) { | |||
currBlock, err := client.GetLatestBlock(ctx) | |||
if err != nil || currBlock == nil || currBlock.BlockHeight == nil { | |||
blockHeight, err := client.GetLatestBlockHeight(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is out of scope of the reorg, but pushing it here so we don't need to make a separate merge: https://smartcontract-it.atlassian.net/browse/NONEVM-1015
@@ -331,6 +333,19 @@ func (c *Client) GetLatestBlock(ctx context.Context) (*rpc.GetBlockResult, error | |||
return v.(*rpc.GetBlockResult), err | |||
} | |||
|
|||
// GetLatestBlockHeight returns the latest block height of the node based on the configured commitment type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is out of scope of the reorg, but pushing it here so we don't need to make a separate merge: smartcontract-it.atlassian.net/browse/NONEVM-1015
Quality Gate passedIssues Measures |
Description
Tickets
Soak Testing