-
Notifications
You must be signed in to change notification settings - Fork 4.5k
RPC: use finalized as default pubsub commitment level #16659
Conversation
Minor wrinkle here I guess is that we explicitly document the default as "confirmed" :-/ I think it's fair to call this a bug, but it should be called out as a breaking change in the release notes. Does web3.js have anything to say about the default in comments anywhere? |
Dang, will fix
Agreed on both points
Nope, it even specifies that the "max" is the default here: https://solana-labs.github.io/solana-web3.js/modules.html#sendandconfirmtransaction |
automerge label removed due to a CI failure |
Codecov Report
@@ Coverage Diff @@
## master #16659 +/- ##
=======================================
Coverage 83.0% 83.0%
=======================================
Files 415 415
Lines 114995 115000 +5
=======================================
+ Hits 95475 95480 +5
Misses 19520 19520 |
* RPC: use finalized as default pubsub commitment level * update docs * Fix tests (cherry picked from commit a7e65c0) # Conflicts: # core/tests/rpc.rs
* RPC: use finalized as default pubsub commitment level * update docs * Fix tests (cherry picked from commit a7e65c0)
Problem
The default commitment for pubsub and http requests are different which can cause consistency issues in downstream clients.
Summary of Changes
Change the default commitment of pubsub subscriptions from confirmed to finalized
Fixes #16596