Core Community Call 10 Notes
Meeting Date/Time: Friday, October 20th, 2023 19:00 UTC
Meeting Duration: 22 minutes 29 seconds
Speakers
- Jacob Creech
- Joe C
- Liam Heeger
- Tyera Eulberg
- Galactus | Mango Market
- Josh Siegel
Meeting Notes
Introduction
Video | 00:00 |
---|
Jacob Creech: Alright, welcome everyone to this month's core Community call, today we will be having Joe present on, I believe it's the feature gate threshold activation.
Go ahead and take it away Joe.
Feature Gate Threshold Automation
Video | 00:18 |
---|
Joe C: Cool sounds good thanks Jacob. Hey guys I'm Joe for those of you guys who haven't met me. I just wanted to talk a little bit about the SIMD, if any of you guys haven't seen it, it's number 72 [SIMD 0072]. Should I just share my screen, What do you think Jacob or ?
Jacob Creech: Go for it.
Overview
Video | 00:35 |
---|
Joe C: Yeah, I am not going to go through every crazy nit bit detail, but we can talk a little bit about the key point, whatever you guys want to jam on, but basically, this is the proposal here. If someone could please provide the link, that'd be great.
And the whole idea is to basically, create a process that is going to be automated, for doing what we already have laid out with the manual process for activating a feature. So, right now, you would run solana feature activate
and you're supposed to have 95% of stake before you do that, before you try to activate a certain feature on a certain version but it's up to you as a person to go make sure the CLI will check for you, but you're supposed to make sure that, that stake support is there.
This process is going to automate that through the runtime and through a program and basically the way it's going to work is, if you go through this design part, you can see it, for example there's two nodes running different versions they have different feature sets and we want to make sure that only the feature sets that have majority 95% would be activated and these other ones would have to wait.
Again 95% is the number that we've been going with for now and we candiscuss that later, but that seems to be what we want to stay with and in a nutshell these three bullets here summarize an epoch boundary, the runtime is going to generate a list of Feature Gates that are queued, the validators are going to signal which of the queued feature gets the support and on the next epoch boundary the runtime will activate the ones that have the necessary support and this going to be an automated process, at least being proposed here.
Representing the Current Feature Set
Video | 02:22 |
---|
Joe C: For starters, we've been working a little bit to replace this feature 111 account which actually doesn't exist right now, with a program, because this is the owner of all the feature accounts that we have deployed when we go to activate.
We want to swap that non-existent account for BPF program and that process may or may not take a SIMD we haven't really I guess landed on that part of it is program itself, there is some questions to answer about the program itself that we can touch on later, but either way just imagine this program sits there and then basically what it's going to do is it's going to use two PDA through this proposal at least, one of them is going to take the new requests for activation as the come in and then at the end of the epoch it will take that and it will finalize it and that finalized list we're going to call the queue, is what the node will vote on in the following epoch.
You are going to have two epochs of process here, one to activate or queue to activate and then the second one to actually vote on for support and then that epochs at the end there of epoch 2 is when you know the ones that have support will be activated.
Signaling Support for Features
Video | 03:35 |
---|
Joe C: What this looks like, is going to be done through what's called a bit mask. We will have a bit field for all of the features that have been proposed. You'll have this big bit field and then well however big, we've talked a little bit about what the size should be and then every node will signal a mask of that with a one(1) for features they have and zeros(0) for features they don't and then everybody will signal that and at the end of the epoch, you'll take a look at all these signaled support and just figure out who's got the proper stake support and who doesn't and just use the bit field to go ahead and activate only the proper ones and then reset everything.
That's what this talks about here, this is what that would look like, there's going to be an instruction that I should probably outline a little more that you would basically send this bit mask into the program, it will store this information in PDAs. There is one PDA for the central authority bit mask, the bit field, the features that have been requested and then each node will have a PDA of the ones that they support and this will all refresh every epoch.
Activating Supported Features
Video | 04:45 |
---|
Joe C: And the activation will still work the same in a way, there will just be that check for the stake support. This is where things are a little bit dicey, because it's, computationally intensive, but can be basically, it will walk these accounts to tally up the stake support and then only activate the ones that have the support. But once we've tallied up who has the support, the rest is the same, it will run the activations that have been written into the code.
Alternatives considered
Video | 05:17 |
---|
Joe C: That's the proposal there are some alternatives I've included here too, one alternative is we could not use two PDAs, we could use just one, but that makes things dicey with the timing of when these signals go out and another alternative as well, is we could not use transactions, we can instead use the block header.
But there doesn't seem to be be a ton of support for that idea, but I would love to open up the conversation to just any thoughts on this especially considering the multi-client world we're going to be in, want to make sure that everybody has a voice on this and we can figure out what looks best for this.
Anybody has a question to start yet? Liam go ahead.
Questions
Video | 06:11 |
---|
Liam Heeger: I am from the Firedancer team, I have been looking at this, we have been thinking about this issue a lot because, as we built Firedancer there's a lot of new features that have been added as we've been developing here and we are intimately involved in how features are being added and having to track all of that. When this proposal came up and and it was not the first discussion that we've had about this, in fact we've been talking about this since probably day one, at least internally.
I guess one of the big questions and I think overall the proposal, the bones of the proposal, or at least the philosophy of this proposal is really good that, maybe we should be enshrining how features get activated base on a stake weighted, base on which validators are actually running the feature based on their stake weight and then allowing them to be activated after that. I think that that's a really good and it's one that we had internally just didn't think about how to do it.
I think the big question or I guess there's a few big questions and one of them was one that you just mentioned which was iterating over all of the stake Accounts at the end of an Epoch to determine whether a feature is ready for activation. It's an expensive operation given the number of stake accounts that there are or even to iterate over the number of vote of accounts that number could also end up exploding at some point.
It's just something to think about whether there should be just one account maybe where theses things are stored, where we do all the accumulation, I think there's a comment about this too that we've been going back and forth about.
Joe C: I think you're right, I think I saw that, you think maybe use one account that everybody appends to?
Liam Heeger: Maybe not appends to but there's a counter in there for each individual feature, I know this was mentioned in the comment that I made about an alternative process and it's certainly I think worthwhile, instead of having this bit mask having each individual feature have its own account and every time and have validators have to vote into each feature that is not active yet that they support and say, hey I'm good on this feature and they just increment one number in there and then once you reach some percentage of the number of validators or the number percentage of the amount of stake that is necessary, that feature is ready to be activated or is activatable.
Joe C: Would you suggest that they would write their stake in there then?
Liam Heeger: They have access to that right? I suppose, and I think they can also.
Joe C: I think the problem is the program, doesn't right? we have no way to prove that that's true right? from a program's context or is that wrong?
Liam Heeger: I can't remember if vote accounts actually contain the current actor state.
Tyera Eulberg: I think the, sorry Tiara here, the way that Richard wrote it out on Discord was using the leader schedule and that is ... and then having bits that can, reflect each slot in the leader schedule and a validator could set the bits for their own leaders slots.
The concern that I have with that approach is that we now have a lot of contention on those single accounts, if we're concerned about scalability with the number of validators going up, now suddenly we have thousands of transactions all trying to hit those same accounts at the same time. What are your thoughts about that.
Liam Heeger: Yeah, one of the things there, the idea there was that it's not a transaction, the leader implicitly is updating ... all the time, this would just be another one of those that happens either before after transaction processing and it really
Tyera Eulberg: Then we'd come back to that same problem with timing in the epoch right? if your leader slots are all at the very beginning, you can't see support later in the epoch.
Liam Heeger: But I guess the Issue is that, that person also has a very small stake then they only get one, they only get one set of slots in the leader schedule, they are probably or even a handful, they are probably not a large, amount of the stake that's currently active and they probably don't constitute the whole network as a whole is what matters. In my mind and if we are saying a threshold of 95% of state is not going to just be hit all at the beginning of a depot, that makes sense.
Tyera Eulberg: I think we might wanna think that through and I don't know, work it out because I think hypothetically you could have 20,000 leader slots and they could all because the leader schedule is randomized, they could all be at the start of the epoch and again you have this problem where that whole rest of the epoch is wasted in terms of your support signaling.
Liam Heeger: That is true, it's something to think about I think there is a trade-off between having contention on an individual account or having or doing this process of having the leader take care it during their control of the bank.
Tyera Eulberg: And I think, our thinking coming into this is that we are already doing those, those stake assessments on the epoch boundary and it's true that might become a problem in a future where we have 100,000 nodes in the network, but it is a problem that we will already have to deal with.
Liam Heeger: I think just a few other things that I have noted down here, I think there's a lot of things that are done in the SIMD that are new and I don't want to be the person who throws a wrench in the process and it is mentioned that the BPF, the process of enshrining a BPF program which has some of these very specific properties.
It's an important change to get right so that we could do it in the future because we'd love eventually that all of the native programs be BPF too and I think that's an aspirational change that, at least the people who are working on the time new program runtime V2 are really excited about it too and it would be good to actually get a process down for that and have their input too so that we can process down for that and have their input too so that we can standardize this at the outset, because it's not clear who should actually update these programs, who should be responsible.
If they are used frequently maybe and they need maybe some privileged access to things within the bank that aren't normally available we should probably think a little bit about, about those too, as well prior to this an then. I think, I'm happy to write this up, but a full road map of how the feature road map or the feature gate stuff eventually turns into more of a governance-based approach as far as activation where the I think the big concern that I think several people that I have spoken to on this have is that, just updating your software, though may be implicit, it's implicit, consciously doing that it, you are not consenting to all these other new features that may affect, maybe a validator, may not be as profitable after some change just because of the software update, which now triggers a feature activation.
It would be good to, give the community that opportunity to come in and say, hey actually, before you, I like the software updates because I get the security fixes but, I don't really want this other thing that hurts me.
Tyera Eulberg: Totally, totally and I posted a comment on Discord just at the 11th hour so you might not have had a chance to read it yet, but we definitely envision that being part of the process and I think that we probably use some problematic language in the SIMD that suggest, I don't know if, I hope the word vote doesn't show up there, but it might and then the word support probably also problematic maybe we should have said something more recognize, because this is the aspect that we are addressing in the SIMD, is purely, like hey this feature exists in my validator software aspect of it and isn't intended to replace an actual governance decision for queing a feature.
Liam Heeger: Yeah, I think we should make that really explicit and then as I said before I think it's worth and I'm happy to sit down and do it, but figuring out how that, that Lego piece plugs into a future governance system and making sure there's going to be compatibility with anything that wants to do.
I don't think there's a lot to do there, it's more just that I think we should think about it. That it's not something we have to then rearchitect the system for.
Tyera Eulberg: Yeah, that sounds great, if you are willing to start on a draft of that, I am sure Joe and I can both chime in and try and get something that seems solid. I don't know if this is a, overarching organizational SIMD or where the best place for it is but.
Joe C: Seems governance is going to be tied into this in multiple ways too, because we have also touched on how we manage the problem upgrades too, especially considering it's elevated status and that will also tie in as you said Liam, into the other programs that are going to be BPF eventually.
Liam Heeger: Yeah, this SIMD highlights some things that want to be done elsewhere too in many ways and it will be good to, to knock some of them out. That's all I have.
Tyera Eulberg: Thank you very much.
Jacob Creech: There's also a few comments in the chat, both on the I think ... was talking about, the governance discussions that have been going on and measuring based off the epoch stakes, as well as I think GM Galactus from Mango is making some comments on the rewards distribution as well as this I guess, is this require is this current SIMD requiring that SIMD or something similar, So that you can measure the, what's on chain, the stake distribution.
Liam Heeger: I think it's worth going back and looking.
Tyera Eulberg: I don't think that we have that requirement because the way we proposed it the stake sort of tallies would be done in the runtime, which has direct access to the data.
Jacob Creech: Okay.
Tyera Eulberg: Rather than inside a BPF program but, it's certainly worth considering and as things develop, if we push more of the functionality into the program that might change.
Jacob Creech: If there's any questions from the audience feel free to raise you hand, otherwise we might be ending this early and continuing the discussion on this, On Discord.
GM Galactus, I will get you on.
Galactus | Mango Market: Hey thanks Jacob, actually I want to discuss another topic and I want to know that If Firedancer will be implementing the Geyser interface, because we are looking into RPC architecture, revised RPC architecture which will stream all the data or Geyser and.
Liam Heeger: Sorry what was the original question?
Galactus | Mango Market: Will Firedancer Implement Geyser Interface or no.
Liam Heeger: I think we are happy to discuss it, there's not a specific plan yet, but it is certainly something that we would want internally as far as tooling goes.
Josh Siegel: We recognize that there is a need for a Geyser like interface.
Galactus | Mango Market: Okay.
Liam Heeger: We will likely provide something that's not identical, but is analogous.
Galactus | Mango Market: Okay, it makes sense, and I also want to point out that, there is not enough testing or Geyser and we are thinking strategies to test or in Solana labs client. If anyone has some ideas you can share.
Jacob Creech: Well also make sure you ask in the Geyser channel on Solana tech, GM Galactus so that we can continue the discussion there.
Galactus | Mango Market: Okay thanks.
Jacob Creech: Alright, if there are no other question, I think ... you have a question about voting, I am not quite sure if this is the palace for that, but we can continue that in Discord, but otherwise thank you everyone for coming to this month's core community call, let's continue the discussion in Discord.
Thank you.
Tyera Eulberg: Thanks everyone.
Joe C: Thanks everyone.