This repository was archived by the owner on Apr 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Limiting Geth to one transaction per block #3
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bfc1a0b
Limiting Geth to one transaction per block
willmeister 87e6beb
making target gas limit configurable and removing unnecessary dependency
willmeister 65054d4
first stab at rollup block builder
willmeister e0595df
adding logging and reducing the number of panics
willmeister 60ff754
fixing deadlock, adding more debug statements, defaulting verbosity t…
willmeister e510eb7
reverting change
willmeister a377355
Adding tests to rollup block builder and fixing bugs
willmeister 61430c4
Adding more unit tests, adding documentation for RollupBlockBuilder
willmeister c641835
adding existing data tests, renaming RollupBlock to TransitionBatch, …
willmeister e6b9381
formatting
willmeister 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
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -34,6 +34,7 @@ profile.cov | |
|
|
||
| # IdeaIDE | ||
| .idea | ||
| *.iml | ||
|
|
||
| # VS Code | ||
| .vscode | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/bin/sh | ||
|
|
||
| ## Passed in from environment variables: | ||
| # HOSTNAME= | ||
| # PORT=8545 | ||
| # NETWORK_ID=108 | ||
| CLEAR_DATA_FILE_PATH="${VOLUME_PATH}/.clear_data_key_${CLEAR_DATA_KEY}" | ||
| TARGET_GAS_LIMIT=${TARGET_GAS_LIMIT:-4294967295} | ||
|
|
||
| if [[ -n "$CLEAR_DATA_KEY" && ! -f "$CLEAR_DATA_FILE_PATH" ]]; then | ||
| echo "Detected change in CLEAR_DATA_KEY. Purging data." | ||
| rm -rf ${VOLUME_PATH}/* | ||
| rm -rf ${VOLUME_PATH}/.clear_data_key_* | ||
| echo "Local data cleared from '${VOLUME_PATH}/*'" | ||
| echo "Contents of volume dir: $(ls -alh $VOLUME_PATH)" | ||
| touch $CLEAR_DATA_FILE_PATH | ||
| fi | ||
|
|
||
| echo "Starting Geth..." | ||
| ## Command to kick off geth | ||
| geth --dev --datadir $VOLUME_PATH --rpc --rpcaddr $HOSTNAME --rpcvhosts=* --rpcport $PORT --networkid $NETWORK_ID --rpcapi 'eth,net' --gasprice '0' --targetgaslimit $TARGET_GAS_LIMIT --nousb --gcmode=archive --verbosity "6" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Interesting test here -- looks like this is hard fork related and will not be applicable to our code. Assuming it's just to keep the tests passing that you had to go in here, can you confirm?
In any case, interesting to think if we'll need to replicate this type of thing for purposes of network upgrades!
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, just following the pattern. I think the important part is to have 2 separate instances of everything. What they're used for matters a lot less to me.