-
Notifications
You must be signed in to change notification settings - Fork 130
[MINOR] migrate TransactionPool (& affiliated test) from 'core' to 'eth' #1251
Conversation
@@ -96,7 +96,7 @@ public boolean addRemoteTransaction(final Transaction transaction) { | |||
return addTransaction; | |||
} | |||
|
|||
boolean addLocalTransaction(final Transaction transaction) { | |||
public boolean addLocalTransaction(final Transaction transaction) { |
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.
You should move all of the TransactionPool
related classes to eth
. I believe that includes: TransactionPool
, PendingTransactions
, PendingTransactionListener
, PendingTransactionDroppedListener
.
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.
Yeah -- I was initially wondering about whether or not to do that -- I've updated the branch accordingly
9a01b71
to
3e6a1e9
Compare
ethereum/eth/build.gradle
Outdated
@@ -55,4 +55,7 @@ dependencies { | |||
testImplementation 'org.mockito:mockito-core' | |||
|
|||
jmhImplementation project(path: ':ethereum:core', configuration: 'testSupportArtifacts') | |||
|
|||
testImplementation project(path: ':config', configuration: 'testSupportArtifacts') |
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.
This like should be alphabetized with the rest of the testImplementation dependenceies. Between line 45 and 46
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.
Nice catch -- thank you.
PR description
Necessary pre-condition of using
SyncState
inTransactionPool
as a filtering mechanism.The gotcha was adding these lines:
to
ethereum/eth/build.gradle
, sinceTransactionPoolTest
hasExecutionContextTestFixture
which requiresGenesisConfigFile
, or anyway one of those files intech.pegasys.pantheon.config
.Fixed Issue(s)