This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
[PAN-1062] Specify pending transaction retention period (2 of 2) #1333
Merged
smatthewenglish
merged 26 commits into
PegaSysEng:master
from
smatthewenglish:tx-period
Apr 30, 2019
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ebc437d
pendingTransactionRetentionPeriod
smatthewenglish c5712d0
PENDING_TX_RETENTION_PERIOD
smatthewenglish 3f7ffc4
test
smatthewenglish f7a9c9f
CommandTestAbstract
smatthewenglish abbcabd
13
smatthewenglish 7727ab4
x
smatthewenglish 45c1faf
x
smatthewenglish 3866b1b
toml
smatthewenglish 06bce30
x
smatthewenglish e17dcaf
0
smatthewenglish f42344d
PENDING_TX_RETENTION_HOURS
smatthewenglish b86c8c6
knst
smatthewenglish b94a4f4
kn
smatthewenglish 559fea5
x
smatthewenglish feb92a2
~
smatthewenglish 5f67f24
*
smatthewenglish 11a9274
int
smatthewenglish 2d9a7d6
pendingTransactionRetentionPeriod
smatthewenglish a5967e7
ChronoUnit.HOURS
smatthewenglish 7734e0d
x
smatthewenglish d6b0e53
DEFAULT_TX_RETENTION_HOURS >< 2
smatthewenglish b460f19
debugging
smatthewenglish c64c680
clock.step(2L, ChronoUnit.HOURS)
smatthewenglish b888bf4
update
smatthewenglish 97482fb
update update
smatthewenglish 1d3eb99
x
smatthewenglish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PENDING_TX_RETENTION_HOURS
- Loading branch information
commit f42344d41500241c904683161413456b229c0fc2
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,7 +133,7 @@ private void syncFromGenesis(final SyncMode mode) throws Exception { | |
.clock(TestClock.fixed()) | ||
.maxPendingTransactions(PendingTransactions.MAX_PENDING_TRANSACTIONS) | ||
.storageProvider(createKeyValueStorageProvider(dbAhead)) | ||
.pendingTransactionRetentionPeriod(PendingTransactions.PENDING_TX_RETENTION_PERIOD) | ||
.pendingTransactionRetentionPeriod(PendingTransactions.PENDING_TX_RETENTION_HOURS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move up a line, next to maxPendingTransacitons. |
||
.build()) { | ||
setupState(blockCount, controller.getProtocolSchedule(), controller.getProtocolContext()); | ||
} | ||
|
@@ -153,7 +153,7 @@ private void syncFromGenesis(final SyncMode mode) throws Exception { | |
.clock(TestClock.fixed()) | ||
.maxPendingTransactions(PendingTransactions.MAX_PENDING_TRANSACTIONS) | ||
.storageProvider(createKeyValueStorageProvider(dbAhead)) | ||
.pendingTransactionRetentionPeriod(PendingTransactions.PENDING_TX_RETENTION_PERIOD) | ||
.pendingTransactionRetentionPeriod(PendingTransactions.PENDING_TX_RETENTION_HOURS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move up a line, next to maxPendingTransacitons. |
||
.build(); | ||
final String listenHost = InetAddress.getLoopbackAddress().getHostAddress(); | ||
final JsonRpcConfiguration aheadJsonRpcConfiguration = jsonRpcConfiguration(); | ||
|
@@ -210,7 +210,7 @@ private void syncFromGenesis(final SyncMode mode) throws Exception { | |
.privacyParameters(PrivacyParameters.DEFAULT) | ||
.clock(TestClock.fixed()) | ||
.maxPendingTransactions(PendingTransactions.MAX_PENDING_TRANSACTIONS) | ||
.pendingTransactionRetentionPeriod(PendingTransactions.PENDING_TX_RETENTION_PERIOD) | ||
.pendingTransactionRetentionPeriod(PendingTransactions.PENDING_TX_RETENTION_HOURS) | ||
.build(); | ||
final EnodeURL enode = runnerAhead.getLocalEnode().get(); | ||
final EthNetworkConfig behindEthNetworkConfiguration = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Need unit in the text if we stay at long/integer.