Adds support for retrieving the slot in which migration to alpenglow happened#1703
Adds support for retrieving the slot in which migration to alpenglow happened#1703akhi3030 wants to merge 1 commit into
Conversation
|
fc029ed to
c61c3d7
Compare
BundleMonUnchanged files (147)
No change in files bundle size Final result: ✅ View report in BundleMon website ➡️ |
216bebb to
223adb0
Compare
223adb0 to
fc03761
Compare
fc03761 to
0caa783
Compare
mcintyre94
left a comment
There was a problem hiding this comment.
Thanks for this! I'll hold on merging until this is closer to release to avoid confusion, but will keep it open.
It'd also be worth us adding a unit test closer to the time, as we have for other RPC methods.
| * | ||
| * @see https://solana.com/docs/rpc/http/getalpenglowmigrationslot | ||
| */ | ||
| getAlpenglowMigrationSlot(config?: Readonly<object>): GetAlpenglowMigrationSlotApiResponse; |
There was a problem hiding this comment.
If the request doesn't take any config (which it looks like from the Agave PR), we can just do:
| getAlpenglowMigrationSlot(config?: Readonly<object>): GetAlpenglowMigrationSlotApiResponse; | |
| getAlpenglowMigrationSlot(): GetAlpenglowMigrationSlotApiResponse; |
|
Thanks for the review @mcintyre94. Looks like we will be making changes to anza-xyz/agave#12735 so we should also wait till we finalise what the exact API will be. |
|
Marking draft for now. The method landed as {
"jsonrpc": "2.0",
"result": null || {
"bitmap": [1,2,3,...],
"certType": {
"genesis": {
"blockId": [4,5,6,...],
"slot": 0
}
},
"signature": [7,8,9,...]
},
"id": 1
} |
Problem
In anza-xyz/agave#12735, we are introducing a new rpc endpoint to retrieve the slot in which migration to alpenglow took place.
Summary of Changes
This adds support for the endpoint in this repo