No need for it to be compatible.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
May 13 2021
May 12 2021
May 11 2021
Either delegation must have at least one level or they don't. It doesn't make sense to insist on avahello having some special type of delegation.
That is a significant step backward. The contention on cs_main is obviously far greater than the one on the peer manager. What alternative have you considered? Why do they fail?
May 10 2021
This is doing several thing at once. What about starting with a validateproof RPC?
You'll note that there is a set of message to exchange mempool content, there is no reason to not do the same for proofs, because this is introducing quadratic behavior.
May 9 2021
May 8 2021
Just check the signature as soon as the messages arrives. There is no point making this dependent on the network layer.
May 7 2021
May 5 2021
May 4 2021
Please address previous feedback.
May 3 2021
Ok, so the problem that you want to solve is knowing if the proof is rejected or just orphaned. The solution can come in many forms. For instance:
1/ Separate validation that doesn't depend from the state (and is therefore def invalid) and validation that is state dependent, put the stateless check outside the peer manager and handle the result there. This doesn't require any changes here.
2/ Do the check here and add a way to export the result, which this patch really doesn't achieve.
Why couldn't fetchOrCreatePeer put the proof in the orphan set based on validation? Why is a new API needed? I strongly suspect that as you actually solve problems that you haven you'll discover that this is not needed.
May 2 2021
I completely fail to see what this patch achieve. The added code seems to be at best redundant with existing code, at worse introduce bugs (if not today, then later as redundancy gets out of sync).
This change does not looks like it make sense to me, because you don't know if it is actually taking ownership or not.
Apr 29 2021
I conclude from the lack of answer that there is actually no reason to initialize the struct where it is.
I don't see any reason this patch should exists, and the description provides none.
Apr 28 2021
Can you use the common denomination for backports, so that this can be grepped for? I just realized that I greened several of these, I shouldn't have. This is making keeping track of things in git pretty much impossible.
Apr 27 2021
I'm going to green this for the sake of progress and this is fairly contained, but I think there are still problems in the API.
Apr 26 2021
The approach looks sensible, but there are no test for anything. It seems like this does too little to constitute a unit.
The test are not passing.
Why does this depends on D9365 . It seems to me that verifying that the delegation is correct isn't really something that depends on being able to supply it. If anything, it should be done no matter what.
Apr 24 2021
Please edit the diff's title and description, right now they are not even proper sentences.
You shouldn't put all the method in the header file. No need to recompile them in every module where they are included, unless they are trivial and you want the optimizer to see that.
Apr 23 2021
I have nothing against generating proofs this way, but the abstraction provided is clearly not good.
Apr 22 2021
Apr 21 2021
In D9345#214194, @PiRK wrote:What about bool hasDustStake(Proof p);?
Why are the changes to P2PTxInvStore ignored?
Ok, now this is looking more like something that make sense. There is this encoding/decoding of the session key that needs to be addressed, but beside that, it's all good.
Apr 20 2021
This is breaking the test suite, back to your queue. Please make sure you run it, this is happening way too often.
I note that you often submit patches that break everything. You should make sure that you compile/run what you submit.
This is pretty much good to go. Make sure isProofStateDustThreshold has a descriptive name.
Apr 19 2021
This will allow for initializing the PeerData from the ArgsManager and make it independent from the Processor.
This kinda have the right idea, but the execution is a problem. For as long as you do these in the various constructors, you must have objects at the end, and therefore you end up constructing possibly invalid objects, which is just bad design.
The rationale of this patch doesn't rally make sense. If data aren't optional, then don't put them in the PeerData. If the name turn out to b confusing then rename.
Apr 14 2021
On a side, note, if we commit to the proof score being the amount in satoshi, how do we handle overflows?
Wouldn't moving away imply to not do the translation in more and more places over time?
Apr 13 2021
This is doing to many things at once. You should break this up, and, as you do so, you'll discover that there are various holes in some parts. This is just going to take forever to get all the parts right if they all prevent each other from moving.
Apr 12 2021
You'll keep shuffling things around until you ask yourself the questions "What does the initialization?" "What does fetch the config?" "What does verify the validity of the different parameters?" and so on. Once you got the answers to these question, you need to apply them consistently.
Apr 11 2021
You need to find what the right API for initialization is. Fixing the current API is mostly motion not progress. If you initialized where thing should be initialized, you wouldn't need to access the proof here now (maybe later, but later is later) and therefore, you wouldn't need to figure out what is the right API to access the proof.
Apr 8 2021
The PR in the description is not correct
You need to read your code, it is telling you things and you are ignoring these things.