Page MenuHomePhabricator
Feed Advanced Search

Jun 7 2022

sdulfari requested review of D11582: [avalanche] Limit the size of the valid proof pool.
Jun 7 2022, 22:05
sdulfari accepted D11571: Extract the compact block processing into a generic helper class.
Jun 7 2022, 21:50
sdulfari accepted D11580: [fuzzer] No longer attempt to deserialize PrefilledTransaction.
Jun 7 2022, 21:48
sdulfari added inline comments to D11571: Extract the compact block processing into a generic helper class.
Jun 7 2022, 21:10
sdulfari accepted D11569: Use the DifferentialIndexedItemFormatter for the compact blocks.
Jun 7 2022, 20:46
sdulfari requested changes to D11571: Extract the compact block processing into a generic helper class.

The tests aren't comprehensive enough.

Jun 7 2022, 18:37
sdulfari requested changes to D11569: Use the DifferentialIndexedItemFormatter for the compact blocks.
Jun 7 2022, 15:57

Jun 6 2022

sdulfari closed D11562: [avalanche] Add a way to get the lowest scoring proof in a pool.
Jun 6 2022, 23:39
sdulfari committed rABC148367118e4d: [avalanche] Add a way to get the lowest scoring proof in a pool (authored by sdulfari).
[avalanche] Add a way to get the lowest scoring proof in a pool
Jun 6 2022, 23:39
sdulfari closed D11561: [avalanche] Add a way to count the number of proofs in a ProofPool.
Jun 6 2022, 23:37
sdulfari committed rABC1302000df761: [avalanche] Add a way to count the number of proofs in a ProofPool (authored by sdulfari).
[avalanche] Add a way to count the number of proofs in a ProofPool
Jun 6 2022, 23:37
sdulfari accepted D11568: Extract the PrefilledProof::Formatter so it can be reused for compact blocks.
Jun 6 2022, 18:04
sdulfari updated the diff for D11561: [avalanche] Add a way to count the number of proofs in a ProofPool.

Fix cache clearing during rescan and test it

Jun 6 2022, 17:25

Jun 3 2022

sdulfari abandoned D11431: [avalanche] Make proof replacement check explicit.
Jun 3 2022, 21:15
sdulfari accepted D11567: Fix off by one errors in the difference fomatter serialize_tests.
Jun 3 2022, 21:13
sdulfari requested changes to D11567: Fix off by one errors in the difference fomatter serialize_tests.
Jun 3 2022, 20:55
sdulfari abandoned D11474: [avalanche] Drop stale votes after too many rounds without finalization.

Supersceded by D11524

Jun 3 2022, 20:51
sdulfari updated the diff for D11562: [avalanche] Add a way to get the lowest scoring proof in a pool.

Use ProofComparatorByScore since it already exists and makes this code more consistent with existing code.

Jun 3 2022, 18:29
sdulfari accepted D11564: drop network.{h|cpp}.
Jun 3 2022, 17:47
sdulfari accepted D11563: remove unneeded includes of core_io.h and network.h.
Jun 3 2022, 17:46
sdulfari requested review of D11562: [avalanche] Add a way to get the lowest scoring proof in a pool.
Jun 3 2022, 04:11
sdulfari added inline comments to D11561: [avalanche] Add a way to count the number of proofs in a ProofPool.
Jun 3 2022, 04:05
sdulfari requested review of D11561: [avalanche] Add a way to count the number of proofs in a ProofPool.
Jun 3 2022, 04:04

Jun 2 2022

sdulfari closed D11553: Fix includes in net.h related to past avalanche refactors.
Jun 2 2022, 16:01
sdulfari committed rABC9e51d744f99d: Fix includes in net.h related to past avalanche refactors (authored by sdulfari).
Fix includes in net.h related to past avalanche refactors
Jun 2 2022, 16:01

Jun 1 2022

sdulfari requested review of D11553: Fix includes in net.h related to past avalanche refactors.
Jun 1 2022, 22:24
sdulfari accepted D11552: remove unused class util::Ref and its unit test.

This change looks ok, so long as D11551 gets fixed and tests pass when you rebase.

Jun 1 2022, 16:44
sdulfari closed D11548: [avalanche] Make stale voting parameters configurable.
Jun 1 2022, 14:29
sdulfari committed rABCc8b5dd7de231: [avalanche] Make stale voting parameters configurable (authored by sdulfari).
[avalanche] Make stale voting parameters configurable
Jun 1 2022, 14:29

May 31 2022

sdulfari updated the diff for D11548: [avalanche] Make stale voting parameters configurable.

Pass voting parameters into isStale() instead of needlessly copying them around in VoteRecord.

May 31 2022, 23:27
sdulfari requested review of D11548: [avalanche] Make stale voting parameters configurable.
May 31 2022, 18:27

May 30 2022

sdulfari closed D11527: [avalanche] Use argsman instead of gArgs throughout processor.
May 30 2022, 22:36
sdulfari committed rABC521a3758562b: [avalanche] Use argsman instead of gArgs throughout processor (authored by sdulfari).
[avalanche] Use argsman instead of gArgs throughout processor
May 30 2022, 22:36
sdulfari closed D11524: [avalanche] Drop stale votes and stale proofs.
May 30 2022, 22:35
sdulfari committed rABC7ebfaec9f5ef: [avalanche] Drop stale votes and stale proofs (authored by sdulfari).
[avalanche] Drop stale votes and stale proofs
May 30 2022, 22:35

May 28 2022

sdulfari updated the diff for D11524: [avalanche] Drop stale votes and stale proofs.

Address feedback

May 28 2022, 16:58

May 27 2022

sdulfari requested review of D11527: [avalanche] Use argsman instead of gArgs throughout processor.
May 27 2022, 17:22
sdulfari requested review of D11524: [avalanche] Drop stale votes and stale proofs.
May 27 2022, 04:27

May 26 2022

sdulfari accepted D11520: [avalanche] Extract proof reception logic out of the avaproof message handling.
May 26 2022, 17:03

May 25 2022

sdulfari accepted D11450: [avalanche] Maintain a radix tree of the proofs.

Some includes need cleanup

May 25 2022, 16:30

May 24 2022

sdulfari closed D11503: [avalanche] Set voterecord_tests node ID using a fixture.
May 24 2022, 22:57
sdulfari committed rABC4b68caf7e306: [avalanche] Set voterecord_tests node ID using a fixture (authored by sdulfari).
[avalanche] Set voterecord_tests node ID using a fixture
May 24 2022, 22:57
sdulfari closed D11502: [avalanche] Add a way to check if a VoteRecord is stale.
May 24 2022, 22:55
sdulfari committed rABC579bfd749b4d: [avalanche] Add a way to check if a VoteRecord is stale (authored by sdulfari).
[avalanche] Add a way to check if a VoteRecord is stale
May 24 2022, 22:55
sdulfari updated the diff for D11502: [avalanche] Add a way to check if a VoteRecord is stale.
  • Adjust thresholds to better work for blocks with long propagation delays
  • Fix some hard coded values in the tests so thresholds can be adjusted easier
May 24 2022, 19:21

May 23 2022

sdulfari accepted D11516: Deduplicate the HasReason class.
May 23 2022, 21:55
sdulfari accepted D11517: Fix an exception message in blockencodings_tests when the compact size MAX_SIZE is not the limiting factor.
May 23 2022, 21:51
sdulfari updated the diff for D11502: [avalanche] Add a way to check if a VoteRecord is stale.

I gave my last comment some more thought and came to this conclusion: Even if my assumptions are correct in practice,
it's better (from a user UX perspective) to deploy with thresholds a bit higher than expected. Consider these scenarios:

May 23 2022, 21:36
sdulfari added a comment to D11502: [avalanche] Add a way to check if a VoteRecord is stale.

I should also mention it's my expectation that confidence flips are not uniformly distributed, but more likely to occur earlier in the voting process. While it's possible to reach 127 confidence and reset twice, then hitting the low-end threshold, I believe this case to be rare.

May 23 2022, 16:40
sdulfari added a comment to D11502: [avalanche] Add a way to check if a VoteRecord is stale.

These thresholds seems REALLY low. How did you pick them?

May 23 2022, 16:21

May 21 2022

sdulfari closed D11501: [avalanche] Remove unnecessary code path in addNodeToQuorum.
May 21 2022, 05:32
sdulfari committed rABC38abe3e93298: [avalanche] Remove unnecessary code path in addNodeToQuorum (authored by sdulfari).
[avalanche] Remove unnecessary code path in addNodeToQuorum
May 21 2022, 05:32
sdulfari closed D11500: [avalanche] Add some tests to check that duplicate votes are not counted.
May 21 2022, 05:31
sdulfari committed rABC767e5c7a8044: [avalanche] Add some tests to check that duplicate votes are not counted (authored by sdulfari).
[avalanche] Add some tests to check that duplicate votes are not counted
May 21 2022, 05:31
sdulfari updated the diff for D11503: [avalanche] Set voterecord_tests node ID using a fixture.
  • Rebase on changes in D11502
  • Remove TestingSetup. It's not needed.
May 21 2022, 05:26
sdulfari updated the diff for D11502: [avalanche] Add a way to check if a VoteRecord is stale.
  • Fix approach so that records will go stale for all confidence levels
  • Add way more test coverage
  • Tighten threshold for low-confidence stalls
May 21 2022, 05:21

May 20 2022

sdulfari added inline comments to D11500: [avalanche] Add some tests to check that duplicate votes are not counted.
May 20 2022, 16:29
sdulfari updated the diff for D11500: [avalanche] Add some tests to check that duplicate votes are not counted.

Added finalization sanity check

May 20 2022, 16:27

May 19 2022

sdulfari requested review of D11503: [avalanche] Set voterecord_tests node ID using a fixture.
May 19 2022, 23:40
sdulfari requested review of D11502: [avalanche] Add a way to check if a VoteRecord is stale.
May 19 2022, 23:24
sdulfari abandoned D11494: [avalanche] Fix underflow when clearing too many inflight requests.

This was only a concern in relation to changes I suggested in D11474. Since my approach on that is changing, this patch isn't relevant anymore.

May 19 2022, 21:20
sdulfari closed D11499: [avalanche] Move VoteRecord tests to their own file.
May 19 2022, 18:34
sdulfari committed rABC4f6a0d53c689: [avalanche] Move VoteRecord tests to their own file (authored by sdulfari).
[avalanche] Move VoteRecord tests to their own file
May 19 2022, 18:34
sdulfari requested review of D11501: [avalanche] Remove unnecessary code path in addNodeToQuorum.
May 19 2022, 18:28
sdulfari requested review of D11500: [avalanche] Add some tests to check that duplicate votes are not counted.
May 19 2022, 18:09
sdulfari requested review of D11499: [avalanche] Move VoteRecord tests to their own file.
May 19 2022, 16:56
sdulfari accepted D11484: txorphanage: Extract AddChildrenToWorkSet.
May 19 2022, 16:02
sdulfari requested review of D11494: [avalanche] Fix underflow when clearing too many inflight requests.
May 19 2022, 15:49

May 18 2022

sdulfari accepted D11493: txorphanage: comment improvements.
May 18 2022, 20:06
sdulfari accepted D11492: net_processing: move AddToCompactExtraTransactions into PeerManagerImpl.
May 18 2022, 20:05
sdulfari accepted D11491: scripted-diff: Update txorphanage naming convention.
May 18 2022, 19:59
sdulfari requested changes to D11484: txorphanage: Extract AddChildrenToWorkSet.
May 18 2022, 19:52
sdulfari accepted D11388: [avalanche] Answer getavaproofs message with short proof ids.
May 18 2022, 17:59
sdulfari closed D11468: [avalanche] Ensure nullptr safety on proccesor's public interface.
May 18 2022, 16:52
sdulfari committed rABCca065adfaba3: [avalanche] Ensure nullptr safety on proccesor's public interface (authored by sdulfari).
[avalanche] Ensure nullptr safety on proccesor's public interface
May 18 2022, 16:52
sdulfari updated the diff for D11474: [avalanche] Drop stale votes after too many rounds without finalization.

Remove unnecesarily complex logic from isStale(). The banning circumstance isn't possible since my understanding was incorrect.

May 18 2022, 16:46
sdulfari added inline comments to D11474: [avalanche] Drop stale votes after too many rounds without finalization.
May 18 2022, 16:45
sdulfari updated the diff for D11468: [avalanche] Ensure nullptr safety on proccesor's public interface.

Fix comment

May 18 2022, 16:32
sdulfari requested review of D11494: [avalanche] Fix underflow when clearing too many inflight requests.
May 18 2022, 16:09
sdulfari updated the diff for D11468: [avalanche] Ensure nullptr safety on proccesor's public interface.

Add requested comments

May 18 2022, 15:51
sdulfari retitled D11474: [avalanche] Drop stale votes after too many rounds without finalization from [avalanche] Mark vote records as stale after too many votes without finalization to [avalanche] Drop stale votes after too many rounds without finalization.
May 18 2022, 04:43

May 17 2022

sdulfari updated the diff for D11474: [avalanche] Drop stale votes after too many rounds without finalization.
  • Add more test coverage
  • Drop the stale vote in addition to reporting the VoteStatus
  • Always check shouldPoll() in getInvsForNextPoll()
  • Make the isStale() check more robust so that votes are only dropped when inflight polls have finished. Otherwise it's possible to ban peers that respond after the record has been dropped.
May 17 2022, 23:31
sdulfari updated the summary of D11474: [avalanche] Drop stale votes after too many rounds without finalization.
May 17 2022, 21:01
sdulfari planned changes to D11474: [avalanche] Drop stale votes after too many rounds without finalization.
May 17 2022, 17:29
sdulfari updated the diff for D11474: [avalanche] Drop stale votes after too many rounds without finalization.

flagged -> marked

May 17 2022, 17:11
sdulfari requested changes to D11388: [avalanche] Answer getavaproofs message with short proof ids.
May 17 2022, 16:53
sdulfari updated the diff for D11474: [avalanche] Drop stale votes after too many rounds without finalization.
  • Added some missing test cases
  • Added requested log
  • Make threshold unsigned
May 17 2022, 16:35
sdulfari added inline comments to D11474: [avalanche] Drop stale votes after too many rounds without finalization.
May 17 2022, 16:26
sdulfari added inline comments to D11474: [avalanche] Drop stale votes after too many rounds without finalization.
May 17 2022, 16:08
sdulfari added inline comments to D11474: [avalanche] Drop stale votes after too many rounds without finalization.
May 17 2022, 16:05
sdulfari accepted D11477: [avalanche] Remove unecessary timeout in the abc_p2p_getavaaddr.py test.

These timeouts are a symptom that the default is too long. They make local testing painful when debugging tests. We should consider lowering the default timeout if not too many tests are impacted, but that will be a separate change.

May 17 2022, 15:58

May 16 2022

sdulfari abandoned D11457: [avalanche] Reject votes that have been inconclusive for too many rounds.

Extract some parts of this diff into D11474. The design is moving away from complicating the vote rejection logic in favor of letting the network layer request inventories as needed.

May 16 2022, 20:37
sdulfari requested review of D11474: [avalanche] Drop stale votes after too many rounds without finalization.
May 16 2022, 20:30
sdulfari planned changes to D11457: [avalanche] Reject votes that have been inconclusive for too many rounds.

I think I came up with a better approach.

May 16 2022, 16:54
sdulfari updated the summary of D11457: [avalanche] Reject votes that have been inconclusive for too many rounds.
May 16 2022, 16:51
sdulfari updated the summary of D11457: [avalanche] Reject votes that have been inconclusive for too many rounds.
May 16 2022, 16:44
sdulfari abandoned D11464: Lint test_framework/messages.py.

I compared versions with Fabien and the version I'm on is older. Installing flake8 and autopep8 via pip3 instead of apt gives the newer versions which give clean linting for this file.

May 16 2022, 16:20
sdulfari added inline comments to D11468: [avalanche] Ensure nullptr safety on proccesor's public interface.
May 16 2022, 16:05
sdulfari accepted D11473: Rename the Uint256KeyWrapper struct.
May 16 2022, 15:45

May 15 2022

sdulfari accepted D11471: Add a checkpoint after the May 15th, 2022 upgrade.
May 15 2022, 16:51