Page MenuHomePhabricator
Feed Advanced Search

May 13 2021

deadalnix added a comment to D9509: [avalanche] Send the proof master pubkey with AVAHELLO.

No need for it to be compatible.

May 13 2021, 12:56

May 12 2021

deadalnix added inline comments to D9498: [avalanche] Reply to proof invs with getdata requests.
May 12 2021, 11:41

May 11 2021

deadalnix accepted D9494: [avalanche] don't ignore avapoll and avaresponse while importing.
May 11 2021, 22:48
deadalnix requested changes to D9498: [avalanche] Reply to proof invs with getdata requests.
May 11 2021, 22:48
deadalnix requested changes to D9497: [avalanche] enforce at least one delegation level in avahello.

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.

May 11 2021, 22:19
deadalnix requested changes to D9499: [avalanche] Reverse cs_main and cs_peerManager lock order.

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 11 2021, 22:17

May 10 2021

deadalnix requested changes to D9492: [avalanche] Add a sendavalancheproof RPC shell.

This is doing several thing at once. What about starting with a validateproof RPC?

May 10 2021, 15:55
deadalnix requested changes to D9493: [avalanche] Prevent sending proof invs multiple times to the same peer.
May 10 2021, 15:43
deadalnix accepted D9490: Factorize flushing the inventory buffer when it reaches its max size.
May 10 2021, 15:36
deadalnix added inline comments to D9489: [avalanche] Annouce our proofs to our peers.
May 10 2021, 15:36
deadalnix requested changes to D9489: [avalanche] Annouce our proofs to our peers.

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 10 2021, 15:33
deadalnix requested changes to D9490: Factorize flushing the inventory buffer when it reaches its max size.
May 10 2021, 14:51
deadalnix accepted D9491: Add missing lock annotation to the tx inventory send buffer.
May 10 2021, 14:40
deadalnix retitled D9491: Add missing lock annotation to the tx inventory send buffer from Add missing lock annotation to the tx inventoryu send buffer to Add missing lock annotation to the tx inventory send buffer.
May 10 2021, 14:40

May 9 2021

deadalnix requested changes to D9489: [avalanche] Annouce our proofs to our peers.
May 9 2021, 21:15

May 8 2021

deadalnix requested changes to D9487: [avalanche] let PeerManager::addNode deal with signature verification.

Just check the signature as soon as the messages arrives. There is no point making this dependent on the network layer.

May 8 2021, 22:32

May 7 2021

deadalnix requested changes to D9478: [avalanche] make avalanche peer discovery in a simple case.
May 7 2021, 13:29
deadalnix accepted D9482: remove misleading comment.
May 7 2021, 13:17
deadalnix accepted D9483: [WEBSITE] Display the upgrade banner on main and BCHA pages.
May 7 2021, 10:51

May 5 2021

deadalnix requested changes to D9476: [avalanche] use the OrphanProofPool.
May 5 2021, 15:39
deadalnix accepted D9477: [backport#20016] uint256: 1 is a constant.
May 5 2021, 14:58

May 4 2021

deadalnix requested changes to D9471: [avalanche] Improve proof checking at startup.
May 4 2021, 13:40
deadalnix requested changes to D9471: [avalanche] Improve proof checking at startup.

Please address previous feedback.

May 4 2021, 07:38
deadalnix requested changes to D9471: [avalanche] Improve proof checking at startup.
May 4 2021, 06:45
deadalnix accepted D9425: [avalanche] add an OrphanProofPool class.
May 4 2021, 06:10

May 3 2021

deadalnix added a comment to D9469: [avalanche] add a way to register a proof without a delegation.

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.

May 3 2021, 18:12
deadalnix accepted D9470: [trivial] fix return value not using alias for SchnorrSig.
May 3 2021, 17:16
deadalnix requested changes to D9469: [avalanche] add a way to register a proof without a delegation.

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 3 2021, 11:56
deadalnix requested changes to D9425: [avalanche] add an OrphanProofPool class.
May 3 2021, 01:56

May 2 2021

deadalnix requested changes to D9469: [avalanche] add a way to register a proof without a delegation.

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).

May 2 2021, 12:32
deadalnix requested changes to D9468: [avalanche] let the PeerManager take ownership of the proof.

This change does not looks like it make sense to me, because you don't know if it is actually taking ownership or not.

May 2 2021, 12:18

Apr 29 2021

deadalnix requested changes to D9365: [avalanche] Add an option to import a delegation.
Apr 29 2021, 14:20
deadalnix requested changes to D9425: [avalanche] add an OrphanProofPool class.
Apr 29 2021, 12:16
deadalnix requested changes to D9369: [avalanche] implement a proof relay struct.

I conclude from the lack of answer that there is actually no reason to initialize the struct where it is.

Apr 29 2021, 11:57
deadalnix accepted D9453: Ensure Axion can be reactivated consistently in abc_mining_basic.
Apr 29 2021, 11:56
deadalnix requested changes to D9454: [avalanche] Fail to delegate to self.

I don't see any reason this patch should exists, and the description provides none.

Apr 29 2021, 11:56
deadalnix accepted D9452: refactor: Combine GetWalletForJSONRPCRequest and EnsureWalletIsAvailable functions.
Apr 29 2021, 11:49

Apr 28 2021

deadalnix requested changes to D9452: refactor: Combine GetWalletForJSONRPCRequest and EnsureWalletIsAvailable functions.

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 28 2021, 15:55

Apr 27 2021

deadalnix added inline comments to D9345: [avalanche] set a minimum amount for a proof.
Apr 27 2021, 22:16
deadalnix accepted D9345: [avalanche] set a minimum amount for a proof.
Apr 27 2021, 22:15
deadalnix accepted D9441: [avalanche] improve stake generation in functional test.

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 27 2021, 15:20
deadalnix accepted D9449: refactor: Replace RecursiveMutex with Mutex in rpc/server.cpp.
Apr 27 2021, 15:19
deadalnix accepted D9448: refactor: Use Mutex type for g_cs_recent_confirmed_transactions.
Apr 27 2021, 15:18
deadalnix accepted D9450: refactor: Use Mutex type for some mutexes in CNode class.
Apr 27 2021, 15:17
deadalnix accepted D9444: [refactor] extract function for past activation tests.
Apr 27 2021, 15:17

Apr 26 2021

deadalnix added a comment to D9369: [avalanche] implement a proof relay struct.

The approach looks sensible, but there are no test for anything. It seems like this does too little to constitute a unit.

Apr 26 2021, 21:33
deadalnix accepted D9446: [website] Remove link to splitbch.com coin splitting service..
Apr 26 2021, 21:28
deadalnix accepted D9414: Fix minerfund in GBT when cashaddr is disabled.
Apr 26 2021, 21:28
deadalnix requested changes to D9441: [avalanche] improve stake generation in functional test.

The test are not passing.

Apr 26 2021, 21:27
deadalnix requested changes to D9445: [avalanche] Check the delegation generated at startup is valid.

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 26 2021, 21:24
deadalnix requested changes to D9345: [avalanche] set a minimum amount for a proof.
Apr 26 2021, 21:03
deadalnix requested changes to D9444: [refactor] extract function for past activation tests.
Apr 26 2021, 20:57
deadalnix requested changes to D9365: [avalanche] Add an option to import a delegation.
Apr 26 2021, 20:56

Apr 24 2021

deadalnix requested changes to D9444: [refactor] extract function for past activation tests.

Please edit the diff's title and description, right now they are not even proper sentences.

Apr 24 2021, 00:04
deadalnix requested changes to D9425: [avalanche] add an OrphanProofPool class.

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 24 2021, 00:01

Apr 23 2021

deadalnix requested changes to D9365: [avalanche] Add an option to import a delegation.
Apr 23 2021, 16:07
deadalnix requested changes to D9441: [avalanche] improve stake generation in functional test.

I have nothing against generating proofs this way, but the abstraction provided is clearly not good.

Apr 23 2021, 15:31
deadalnix accepted D9442: remove BCHN from download page.
Apr 23 2021, 15:16

Apr 22 2021

deadalnix accepted D9430: [backport#19178] Make mininode_lock non-reentrant.
Apr 22 2021, 17:38
deadalnix accepted D9422: [avalanche] Don't turn on service bit if we don't have a proof.
Apr 22 2021, 11:19
deadalnix accepted D9440: [avalanche] Move proof verification to processor.
Apr 22 2021, 11:16

Apr 21 2021

deadalnix accepted D9345: [avalanche] set a minimum amount for a proof.
Apr 21 2021, 21:08
deadalnix added a comment to D9345: [avalanche] set a minimum amount for a proof.
In D9345#214194, @PiRK wrote:

What about bool hasDustStake(Proof p);?

Apr 21 2021, 21:07
deadalnix requested changes to D9430: [backport#19178] Make mininode_lock non-reentrant.
Apr 21 2021, 18:51
deadalnix added a comment to D9430: [backport#19178] Make mininode_lock non-reentrant.

Why are the changes to P2PTxInvStore ignored?

Apr 21 2021, 18:51
deadalnix requested changes to D9440: [avalanche] Move proof verification to processor.
Apr 21 2021, 18:26
deadalnix requested changes to D9425: [avalanche] add an OrphanProofPool class.
Apr 21 2021, 12:22
deadalnix requested changes to D9440: [avalanche] Move proof verification to processor.

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 21 2021, 12:08

Apr 20 2021

deadalnix requested changes to D9430: [backport#19178] Make mininode_lock non-reentrant.

This is breaking the test suite, back to your queue. Please make sure you run it, this is happening way too often.

Apr 20 2021, 15:42
deadalnix accepted D9433: [net] Make cs_inventory nonrecursive.
Apr 20 2021, 15:41
deadalnix accepted D9429: [backport#19299] remove unused variables and add missing includes.
Apr 20 2021, 15:40
deadalnix requested changes to D9425: [avalanche] add an OrphanProofPool class.

I note that you often submit patches that break everything. You should make sure that you compile/run what you submit.

Apr 20 2021, 15:40
deadalnix requested changes to D9345: [avalanche] set a minimum amount for a proof.

This is pretty much good to go. Make sure isProofStateDustThreshold has a descriptive name.

Apr 20 2021, 00:09
deadalnix requested changes to D9365: [avalanche] Add an option to import a delegation.
Apr 20 2021, 00:06
deadalnix requested changes to D9423: [avalanche] Remember rejected proofs.
Apr 20 2021, 00:01

Apr 19 2021

deadalnix requested changes to D9422: [avalanche] Don't turn on service bit if we don't have a proof.
Apr 19 2021, 23:50
deadalnix requested changes to D9421: [avalanche] Move the initial proof verification to PeerData constructor.
Apr 19 2021, 23:48
deadalnix requested changes to D9419: [avalanche] Move the session key to the PeerData structure.

This will allow for initializing the PeerData from the ArgsManager and make it independent from the Processor.

Apr 19 2021, 23:40
deadalnix requested changes to D9420: [avalanche] Initialize PeerData from ArgsManager.

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.

Apr 19 2021, 23:29
deadalnix requested changes to D9425: [avalanche] add an OrphanProofPool class.
Apr 19 2021, 23:27
deadalnix requested changes to D9418: [avalanche] Make the peer data proof and delegation optional.

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 19 2021, 23:16

Apr 14 2021

deadalnix accepted D9416: [BUILDBOT] Switch secp256k1 to Cirrus CI.
Apr 14 2021, 15:31
deadalnix requested changes to D9345: [avalanche] set a minimum amount for a proof.

On a side, note, if we commit to the proof score being the amount in satoshi, how do we handle overflows?

Apr 14 2021, 15:31
deadalnix requested changes to D9414: Fix minerfund in GBT when cashaddr is disabled.

Wouldn't moving away imply to not do the translation in more and more places over time?

Apr 14 2021, 12:29

Apr 13 2021

deadalnix accepted D9398: [SECP256K1] ci: Switch all Linux builds to Debian and more improvements.
Apr 13 2021, 13:23
deadalnix requested changes to D9370: [avalanche] orphan pool for proofs, make AlreadyHave support proofs.

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 13 2021, 13:22
deadalnix accepted D9397: [SECP256K1] Add support for Cirrus CI.
Apr 13 2021, 13:11

Apr 12 2021

deadalnix requested changes to D9368: [avalanche] move proof verification code to processor.cpp.

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 12 2021, 16:47
deadalnix requested changes to D9368: [avalanche] move proof verification code to processor.cpp.
Apr 12 2021, 14:45

Apr 11 2021

deadalnix requested changes to D9394: [avalanche] rename getProof to getLocalProof and return a pointer.

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 11 2021, 15:09

Apr 8 2021

deadalnix accepted D9387: [SECP256K1] Add parens around ROUND_TO_ALIGN's parameter..
Apr 8 2021, 13:59
deadalnix accepted D9385: [SECP256K1] Remove underscores from header defs..
Apr 8 2021, 13:48
deadalnix accepted D9386: [SECP256K1] Add missing secp256k1_ge_set_gej_var decl..
Apr 8 2021, 13:48
deadalnix requested changes to D9387: [SECP256K1] Add parens around ROUND_TO_ALIGN's parameter..

The PR in the description is not correct

Apr 8 2021, 13:47
deadalnix accepted D9383: [SECP256K1] Avoid casting (void**) values..
Apr 8 2021, 13:20
deadalnix accepted D9384: [SECP256K1] Remove unused secp256k1_fe_inv_all_var.
Apr 8 2021, 13:20
deadalnix requested changes to D9345: [avalanche] set a minimum amount for a proof.
Apr 8 2021, 13:19
deadalnix requested changes to D9368: [avalanche] move proof verification code to processor.cpp.

You need to read your code, it is telling you things and you are ignoring these things.

Apr 8 2021, 13:16
deadalnix accepted D9371: [avalanche] delay executing avalanche event loop until IBD is done.
Apr 8 2021, 13:07
deadalnix accepted D9382: [SECP256K1] Autoconf improvements.
Apr 8 2021, 13:05