Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use constant and update comment
  • Loading branch information
eggplantzzz committed Feb 18, 2021
commit 6ebe1b02d1d556820e4ee8215f3fb220196d472f
2 changes: 1 addition & 1 deletion src/chains/ethereum/ethereum/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export default class Blockchain extends Emittery.Typed<
blockGasLimit.toBuffer(),
Quantity.from(timestamp),
this.#options.miner.difficulty,
Quantity.from(0) // we start the totalDifficulty at 0
RPCQUANTITY_ZERO // we start the totalDifficulty at 0
);

// store the genesis block in the database
Expand Down
2 changes: 1 addition & 1 deletion src/chains/ethereum/options/src/miner-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type MinerConfig = {

/**
* Sets the block difficulty

*
* @default 1
*/
difficulty: {
Expand Down