Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Change VM hardfork default to muirGlacier (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjpaterno authored Jan 22, 2020
1 parent 144745a commit 9a4a991
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Both `.provider()` and `.server()` take a single object which allows you to spec
* `"account_keys_path"`: `String` - Specifies a file to save accounts and private keys to, for testing.
* `"vmErrorsOnRPCResponse"`: `boolean` - Whether or not to transmit transaction failures as RPC errors. Set to `false` for error reporting behaviour which is compatible with other clients such as geth and Parity. This is `true` by default to replicate the error reporting behavior of previous versions of ganache.
* `"hdPath"`: The hierarchical deterministic path to use when generating accounts. Default: "m/44'/60'/0'/0/"
* `"hardfork"`: `String` Allows users to specify which hardfork should be used. Supported hardforks are `byzantium`, `constantinople`, `petersburg`, and `istanbul` (default).
* `"hardfork"`: `String` Allows users to specify which hardfork should be used. Supported hardforks are `byzantium`, `constantinople`, `petersburg`, `istanbul`, and `muirGlacier` (default).
* `"allowUnlimitedContractSize"`: `boolean` - Allows unlimited contract sizes while debugging (NOTE: this setting is often used in conjuction with an increased `gasLimit`). By setting this to `true`, the check within the EVM for contract size limit of 24KB (see [EIP-170](https://git.io/vxZkK)) is bypassed. Setting this to `true` **will** cause `ganache-core` to behave differently than production environments. (default: `false`; **ONLY** set to `true` during debugging).
* `"gasPrice"`: `String::hex` Sets the default gas price for transactions if not otherwise specified. Must be specified as a `hex` encoded string in `wei`. Defaults to `"0x77359400"` (2 `gwei`).
* `"gasLimit"`: `String::hex | number` Sets the block gas limit. Must be specified as a `hex` string or `number`(integer). Defaults to `"0x6691b7"`.
Expand Down
2 changes: 1 addition & 1 deletion lib/blockchain_double.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const defaultOptions = {
defaultTransactionGasLimit: "0x15f90",
time: null,
debug: false,
hardfork: "istanbul",
hardfork: "muirGlacier",
allowUnlimitedContractSize: false
};

Expand Down
2 changes: 1 addition & 1 deletion lib/database/txserializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const decode = function(json, done) {
comment: "Local test network"
};

let hardfork = "istanbul";
let hardfork = "muirGlacier";
if (json._options) {
hardfork = json._options.hardfork;
commonOptions.chainId = json._options.chainId;
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module.exports = class Transaction extends EthereumJsTransaction {
comment: "Local test network",
bootstrapNodes: []
},
"istanbul"
"muirGlacier"
);
}
super(undefined, { common });
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare module "ganache-core" {
fork_block_number?: string | number;
gasLimit?: string | number;
gasPrice?: string;
hardfork?: "byzantium" | "constantinople" | "petersburg" | "istanbul";
hardfork?: "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier";
hd_path?: string;
locked?: boolean;
logger?: {
Expand Down

0 comments on commit 9a4a991

Please sign in to comment.