-
Notifications
You must be signed in to change notification settings - Fork 130
Conversation
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/MarkSweepPruner.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me. I've noted a few things but nothing too major. Since this is based on code I wrote will leave actual approval to someone else.
...eum/blockcreation/src/main/java/tech/pegasys/pantheon/ethereum/blockcreation/BlockMiner.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/MarkSweepPruner.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/test/java/tech/pegasys/pantheon/ethereum/worldstate/PrunerTest.java
Show resolved
Hide resolved
ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/DefaultSynchronizer.java
Outdated
Show resolved
Hide resolved
ethereum/trie/src/main/java/tech/pegasys/pantheon/ethereum/trie/StoredMerklePatriciaTrie.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Outdated
Show resolved
Hide resolved
...vstore/src/test/java/tech/pegasys/pantheon/services/kvstore/AbstractKeyValueStorageTest.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/test/java/tech/pegasys/pantheon/ethereum/worldstate/PrunerTest.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/test/java/tech/pegasys/pantheon/ethereum/worldstate/PrunerTest.java
Show resolved
Hide resolved
...eum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/ExecutorServiceBuilder.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/MarkSweepPruner.java
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Outdated
Show resolved
Hide resolved
pantheon/src/main/java/tech/pegasys/pantheon/controller/PantheonControllerBuilder.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple nits, both optional. LGTM
ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/worldstate/Pruner.java
Outdated
Show resolved
Hide resolved
@Test | ||
public void shouldRejectInvalidArguments() { | ||
final Blockchain mockchain = mock(Blockchain.class); | ||
assertThatThrownBy(() -> new Pruner(markSweepPruner, mockchain, mockExecutorService, -1, -2)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: in a previous commit you covered multiple cases where only one arg was illegal (i.e. 0, -1 and what should have been -1, 0). I felt that test had more coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, meredith and I realized that the case that I thought was illegal is actually possible, so we relaxed the cases where the arguments were illegal.
PR description
Brings in Mark Sweep Pruner and test associated with it.
Key differences from PoC:
Fixed Issue(s)
https://pegasys1.atlassian.net/secure/RapidBoard.jspa?rapidView=28&modal=detail&selectedIssue=PAN-2820
https://pegasys1.atlassian.net/secure/RapidBoard.jspa?rapidView=28&modal=detail&selectedIssue=PAN-2819