Skip to content
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

[fireblocks] Adjust confirmation threshold #171

Closed
wants to merge 1 commit into from

Conversation

ian-shim
Copy link
Contributor

Allow setting confirmation threshold for fireblocks transactions (which default to 3 otherwise)

@ian-shim ian-shim marked this pull request as draft March 31, 2024 22:12
@ian-shim ian-shim force-pushed the fireblocks-num-confirmations branch from 9dbb88d to fc1db04 Compare March 31, 2024 22:15
@ian-shim ian-shim force-pushed the fireblocks-num-confirmations branch from fc1db04 to 8fc5416 Compare March 31, 2024 22:16
@ian-shim ian-shim marked this pull request as ready for review March 31, 2024 22:20
@mooselumph
Copy link

Seems like this PR sets a fixed confirmation threshold for the wallet and then updates the confirmation threshold for each individual transaction. I suppose there isn't a global fireblocks setting that can be used instead?

@ian-shim
Copy link
Contributor Author

ian-shim commented Apr 1, 2024

Seems like this PR sets a fixed confirmation threshold for the wallet and then updates the confirmation threshold for each individual transaction. I suppose there isn't a global fireblocks setting that can be used instead?

There doesn't seem like an option to set the global threshold for the account 😢

@@ -199,6 +201,14 @@ func (t *fireblocksWallet) SendTransaction(ctx context.Context, tx *types.Transa
t.txIDToNonce[res.ID] = nonce
t.logger.Debug("Fireblocks contract call complete", "txID", res.ID, "status", res.Status)

success, err := t.fireblocksClient.SetConfirmationThreshold(ctx, res.ID, t.confirmationThreshold)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use confirmationThreshold=0 or -1 to just use the default?

Copy link

@mooselumph mooselumph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ian-shim ian-shim closed this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants