This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 678
fix: set difficulty default to 1 and add totalDifficulty
#771
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b308507
Initialize with a block difficulty of 1 by default
eggplantzzz 5e1ea5c
Hook up the rest of the plumbing for creating blocks with difficulty
eggplantzzz 2b1e662
Use the options to determine difficulty and not the previous block he…
eggplantzzz 630558e
Actually calculate totalDifficulty using previous totalDifficulty and…
eggplantzzz c1d628e
Make difficulty option a number rather than a string
eggplantzzz e501ffb
Add a couple of simple tests for totalDifficulty and difficulty; upda…
eggplantzzz 62e3787
Use constant for difficulty in test
eggplantzzz 2c4369a
fix block size calculation
davidmurdoch 929b766
Update src/chains/ethereum/options/src/miner-options.ts
eggplantzzz 6ebe1b0
Use constant and update comment
eggplantzzz 0554ab7
Update src/chains/ethereum/options/src/miner-options.ts
eggplantzzz 4d2d162
Use constant for miner options default
eggplantzzz f77d256
Update some tests
eggplantzzz 1c90485
Use HEX
eggplantzzz 3366b1f
Get rid of helper method and use evm_mine in tests
eggplantzzz 82582c1
Update src/chains/ethereum/ethereum/tests/api/eth/getBlockByNumber.te…
davidmurdoch 72fa711
Update src/chains/ethereum/ethereum/tests/api/eth/getBlockByNumber.te…
davidmurdoch 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
Use constant and update comment
- Loading branch information
commit 6ebe1b02d1d556820e4ee8215f3fb220196d472f
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
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 |
|---|---|---|
|
|
@@ -45,7 +45,7 @@ export type MinerConfig = { | |
|
|
||
| /** | ||
| * Sets the block difficulty | ||
|
|
||
| * | ||
| * @default 1 | ||
| */ | ||
| difficulty: { | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.